Multiple files for a single SQLite database

后端 未结 3 1866
情书的邮戳
情书的邮戳 2021-01-01 13:05

Afaik, SQLite stores a single database in a single file. Since this would decrease the performance when working with large databases, is it possible to explicitly tell SQLit

3条回答
  •  [愿得一人]
    2021-01-01 13:34

    SQLite database files can grow quite large without any performance penalties.

    The things that might degrade performance are:

    • file-locking contention
    • table size (if using indexes and issuing write queries)

    Also, by default, SQLite limits the number of attached databases to 10.

    Anyway, try partition your tables. You'll see that SQLite can grow enormously this way.

提交回复
热议问题