I have an Sqlite3 database with a table and a primary key consisting of two integers, and I\'m trying to insert lots of data into it (ie. around 1GB or so)
The issue
If you'll be able to merge key (I think you're using 32bit, while sqlite using 64bit, so it's possible) and fill data in sorted order I bet you will fill in your first Gb with the same performance as second and both will be fast enough.
Are you doing the INSERT
of each new as an individual Transaction?
If you use BEGIN TRANSACTION and INSERT
rows in batches then I think the index will only get rebuilt at the end of each Transaction.
See faster-bulk-inserts-in-sqlite3.