Improve INSERT-per-second performance of SQLite

后端 未结 10 2225
忘掉有多难
忘掉有多难 2020-11-21 04:41

Optimizing SQLite is tricky. Bulk-insert performance of a C application can vary from 85 inserts per second to over 96,000 inserts per second!

Background:

10条回答
  •  鱼传尺愫
    2020-11-21 05:24

    I coudn't get any gain from transactions until I raised cache_size to a higher value i.e. PRAGMA cache_size=10000;

提交回复
热议问题