Maximum number of rows in a sqlite table

后端 未结 7 810
梦毁少年i
梦毁少年i 2020-12-10 00:30

Give an simple sqlite3 table (create table data (key PRIMARY KEY,value)) with key size of 256 bytes and value size of 4096 bytes, what is the limit (ignoring d

7条回答
  •  悲&欢浪女
    2020-12-10 01:13

    I have a 7.5GB SQLite database which stores 10.5 million rows. Querying is fast as long as you have correct indexes. To get the inserts to run quickly, you should use transactions. Also, I found it's better to create the indexes after all rows have been inserted. Otherwise the insert speed is quite slow.

提交回复
热议问题