Skip to content

Optimize SQLite for concurrent writes in sync-client #8

@adamski

Description

@adamski

SQLite can encounter "database is locked" errors under heavy concurrent write load. It's unclear if the current connection and write strategy in sync-client is optimized for this. This could become a scalability bottleneck.

To fix:

  • Review the sync-client's database connection pool and transaction handling.
  • Investigate SQLite's WAL (Write-Ahead Logging) mode and other optimizations for concurrent access.
  • Implement changes to ensure the database can handle the expected load without errors.

Migrated from Linear: REP-15

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions