Maximum number of rows in a sqlite table

后端 未结 7 793
梦毁少年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:36

    The answer you want is right here.

    Each OS you mentioned supports multiple file system types. The actual limits will be per-filesystem, not per-OS. It's difficult to summarize the constraint matrix on SO, but while some file systems impose limits on file sizes, all major OS kernels today support a file system with extremely large files.

    The maximum page size of an sqlite3 db is quite large, 2^32768, although this requires some configuration. I presume an index must specify a page number but the result is likely to be that an OS or environment limit is reached first.

    0 讨论(0)
提交回复
热议问题