SQLite insert speed slows as number of records increases due to an index

前端 未结 5 1439
無奈伤痛
無奈伤痛 2020-11-29 19:59

Original question

Background

It is well-known that SQLite needs to be fine tuned to achieve insert speeds on the order of 50k inserts/s. There are many q

5条回答
  •  猫巷女王i
    2020-11-29 20:29

    In my project, I couldn't shard the database, as it's indexed on different columns. To speed up the inserts, I've put the database during creation on /dev/shm (=linux ramdisk) and then copy it over to local disk. That obviously only works well for a write-once, read-many database.

提交回复
热议问题