is there a limit to the size of a SQLite database?

后端 未结 4 954
时光取名叫无心
时光取名叫无心 2020-11-30 08:38

I have read their limits FAQ, they talk about many limits except limit of the whole database.

4条回答
  •  感情败类
    2020-11-30 09:15

    The maximum number of bytes in a string or BLOB in SQLite is defined by the preprocessor macro SQLITE_MAX_LENGTH. The default value of this macro is 1 billion (1 thousand million or 1,000,000,000). 

    The current implementation will only support a string or BLOB length up to 231-1 or 2147483647

    The default setting for SQLITE_MAX_COLUMN is 2000. You can change it at compile time to values as large as 32767. On the other hand, many experienced database designers will argue that a well-normalized database will never need more than 100 columns in a table.

    SQLite does not support joins containing more than 64 tables.

    The theoretical maximum number of rows in a table is 2^64 (18446744073709551616 or about 1.8e+19). This limit is unreachable since the maximum database size of 140 terabytes will be reached first.

    Max size of DB : 140 terabytes

    Please check URL for more info : https://www.sqlite.org/limits.html

提交回复
热议问题