@alex https://sqlite-users.sqlite.narkive.com/rUeC9GQR/slow-query-after-reboot
To speedup the initial access, you can:
- read the entire file once before you start your query
- run the following query (once) select count(last_column) from big_table; this will touch each record in a kind of optimal order