I have a single table in SQLite that essentially has the following:
id : integer (primary key)
name: text
timestamp: text
data1: integer
data2: integer
...
data6: integer
I need to filter by name and timestamp, so I have the (name, timestamp) index set up.
At 100,000,000 rows, SQLite crawls at querying. Understand the index reduces time complexity from O(n) to O(log n) but it still seems to be too slow. I prefer not to slice the data into multiple tables. Any suggestions?