I have a sentence like the cat sat on the mat
stored as a single sql field. I want to periodically search for keywords which are not not in a stop list, in this case cat sat mat
What's the best way to store them in an SQL table for quick searching?
As far as I can see it I see the following options
- Up to [n] additional columns per row, one for each word.
- Store all of the interesting words in a single, comma separated field.
- A new table, linked to the first with either of the above options.
- Do nothing and search for a match each time I have a new word to search on.
Which is best practice and which is fastest for searching for word matches? I'm using sqlite in python if that makes a difference.