Closed trag1c closed 1 year ago
Should we not casefold the highlight before storing it in the database? That should make it a bit more performant by only having to casefold once per highlight. Would require some work for migration tho.
EDIT: or ig we can just not migrate and require users to manually update their highlights if they're not casefolded :trollface:. Only issue would be that we would need to keep some way to delete highlights that are not casefolded.
too much effort ngl
initially went with making them casefold during creation but reverted that since there already are highlights in different cases
also I think it's not that heavy to run
.casefold()
on the content every time (can change if needed tho)