I have a table like this:
id | status | message
1 | 200 | Some long text
2 | 400 | Other text
Sometimes I need to find a row based on the id, sometimes based on the status (including range queries), sometimes I need to filter based on some words contained in the message. And sometimes I need to filter based on a mix of conditions on all columns.
The problem is that I have two alternatives:
- Use a virtual table FTS5 for full-text search
- Use a normal table with the index on id and status
It seems that I can't have both... Am I missing something? What should I do in this case?