top | item 46244854

(no title)

AlexErrant | 2 months ago

I was looking for a way to index a JSON column that contains a JSON array, like a list of tags. AFAIK this method won't work for that; you'll either need to use FTS or a separate "tag" table that you index.

discuss

order

MyOutfitIsVague|2 months ago

Yeah, SQLite doesn't have any true array datatype. I think you could probably do it with a virtual table, but that would be adding a native extension, and it would have to pack its own index.

rini17|2 months ago

You can use triggers to keep the tag table synchronized automatically.