Shaare your links...
33139 links
Liens en vrac de sebsauvage Home Login RSS Feed ATOM Feed Tag cloud Picture wall Daily
Links per page: 20 50 100
page 1 / 1
  • astuces BasesDeDonnées
    Towards Inserting One Billion Rows in SQLite Under A Minute - blag
    Sous le coude parce que ça pourra me servir: Insérer 1 milliard de lignes dans une base SQLite en moins d'une minute.

    Si on résume (extrait de l'article):

    PRAGMA journal_mode = OFF;
    PRAGMA synchronous = 0;
    PRAGMA cache_size = 1000000;
    PRAGMA locking_mode = EXCLUSIVE;
    PRAGMA temp_store = MEMORY;

    What do these do?
    - Turning off journal_mode will result in no rollback journal, thus we cannot go back if any of the transactions fail. This disables the atomic commit and rollback capabilities of SQLite. Do not use this in production.
    - By turning off synchronous, SQLite does not care about writing to disk reliably and hands off that responsibility to the OS. A write to SQLite, may not mean it is flushed to the disk. Do not use this in production.
    - The cache_size specifies how many memory pages SQLite is allowed to hold in the memory. Do not set this to a high value in production.
    - In EXCLUSIVE locking mode, the lock held by the SQLite connection is never released.
    - Setting temp_store to MEMORY will make it behave like an in-memory database.
    2021-07-19 11:55:09
    https://avi.im/blag/2021/fast-sqlite-inserts/
Links per page: 20 50 100
page 1 / 1
Shaarli 0.0.41 beta modifiée - 2022-08-11 - The personal, minimalist, super-fast, no-database delicious clone. By sebsauvage.net. Theme by idleman.fr. I'm on Mastodon.
shelter.moe