in reply to Sqlite: Threads and inserts into a different database for each one. (1 thread fast, >1 slow)
SQLite is not strong in concurrency; for practical (writing) purposes it is best regarded as a 1-person database.
See the SQLite FAQ sit and when (not) to use.
In Section
Seekers of Perl Wisdom