Skip to content
This repository was archived by the owner on Jul 1, 2026. It is now read-only.
This repository was archived by the owner on Jul 1, 2026. It is now read-only.

API for inserting multiple rows fast #2

Closed as not planned
Closed as not planned

Description

@kkaefer
No description provided.

Activity

  1. horatio-sans-serif commented on Jun 2, 2011

    @horatio-sans-serif

    ?

  2. kkaefer commented on Jun 2, 2011

    @kkaefer
    ContributorAuthor

    This is a feature request. The feature would provide an API for batching large amounts of rows from JS to C++ land. The idea is to improve performance. However, we haven't found any performance bottlenecks in this area for our use case, so it's not implemented yet.

  3. horatio-sans-serif commented on Jun 2, 2011

    @horatio-sans-serif

    a-ha!

  4. klaufir commented on Jan 27, 2014

    @klaufir

    This is a must have. Well established DB-APIs all have some way to batch insert values. See Python's executemany. http://www.python.org/dev/peps/pep-0249/#id18 .

  5. added a commit that references this issue on May 4, 2018
  6. RobertSasak commented on May 29, 2019

    @RobertSasak

    I recommend adding following. It has speed up inserting in order of magnitude. Source: http://blog.quibb.org/2010/08/fast-bulk-inserts-into-sqlite/

    db.run('PRAGMA synchronous=OFF')
    db.run('PRAGMA count_changes=OFF')
    db.run('PRAGMA journal_mode=MEMORY')
    db.run('PRAGMA temp_store=MEMORY')
  7. cekvenich commented on Apr 21, 2020

    @cekvenich

    What RobertSasak said plus begin/commit. I get ~ 30K rows/sec.

  8. daniellockyer commented on Sep 17, 2022

    @daniellockyer
    Contributor

    I like the PRAGMA suggestions in this thread, so I don't think we explicitly need a specific API right now 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions