I am doing big inserts into the SQLite3 database, and I'm trying to figure out what kind of performance I should expect from what I actually see.
My table looks like this:
cursor.execute( "CREATE TABLE tweets( tweet_hash TEXT PRIMARY KEY ON CONFLICT REPLACE, tweet_id INTEGER, tweet_text TEXT)" )
and my inserts look like this:
cursor.executemany("INSERT INTO tweets VALUES (?, ?, ?)", to_write)
where to_write is a list of tuples.
Currently, the database contains about 12 million rows, inserting 50 000 rows takes about 16 minutes, working in the 2008 Mac.
Does this sound reasonable or is there something rude?
source share