djstevenson / songs-to-the-siren

A blog about songs
MIT License
0 stars 0 forks source link

Don't store rendered Markdown (etc) in the DB #230

Closed djstevenson closed 4 years ago

djstevenson commented 4 years ago

When a song is saved with a markdown-formatted description, we render it to HTML before saving into the DB.

This is good for performance given that writes are way less infrequent than reads. But it adds complexity. And also, unless the site gets so popular that performance becomes a problem, the speed impact of rendering markdown at display time is sufficiently small.

(ditto BBCode for comments)

djstevenson commented 4 years ago

Won't do