I have a table holding data about entities. When I had 250,000 entities sqlite3 worked reasonably fast, but after adding 100k more (now 350k entities in one table) it significantly slowed down (at least 2-3 times slower). What could be the cause, and how can I overcome that? I intend to add a few million entities to the table.
Now that I've made some queries, it is reasonably fast again, even after closing sqlite3 and the shell. I'm not sure if it's because there's something loaded to my RAM, hard drive's cache or SQLite's own database internal representation (database file) changed because of my queries.