Skip to content

Misleading information in the readme about SQLite concurrency #998

@tantaman

Description

@tantaman

Wanted to call out that SQLite's "lack of concurrency" as it is called out in the readme:

no amount of asynchronicity will save you from SQLite3's serialized nature.

is a bit misleading. The serial nature is really a problem of the pairing of SQLite w/ JavaScript and doesn't exist in languages able to spawn threads. In languages that support threads, you can spawn many concurrent read connections and not be constrained to serial reads when in WAL mode.

This is also true for writes for those using SQLite's HCTree -- https://sqlite.org/hctree/doc/hctree/doc/hctree/index.html

no amount of asynchronicity will save you...

You could work around this in NodeJS by spawning dedicated worker threads for long-running reads.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions