DEV Community


Discussion on: How would you build a Medium-esque highlighting feature?

albertofdzm profile image
Alberto Fernandez

I think that store the whole string is a bad practice since it would increment the database size exponentially.

I know that if you don't store the string you couldn't find where was the annotation if the author decides to change the content but I don't find it that important compared to the storage cost it would provoke plus the reprocess you would have to do refinding the annotations each time an author edits the content.