Why is the same SQLite query being 30 times slower when fetching only twice as many results?
- 阅读更多 关于 Why is the same SQLite query being 30 times slower when fetching only twice as many results?
I have been working on speeding up a query I'm using for about a week now and asked several questions about it here ( How can I speed up fetching the results after running an sqlite query? , Is it normal that sqlite.fetchall() is so slow? , How to use min() and max() in an efficient way? ). With the very useful help from the answers given there I managed to get the time down to the sqlite query taking 100.95 seconds and fetchall taking: 1485.43 . This was still not enough, so after trying out some different indexes I managed to get the query time down to 0.08 seconds for one sample and the