Skip to content

BUG: Improve SQLite concurrency handling to prevent database is locked errors #913

@sujal111

Description

@sujal111

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

Under concurrent access (multiple requests / threads), SQLite can raise intermittent database is locked errors.
The current connection setup does not configure SQLite’s recommended concurrency and timeout PRAGMAs, which makes the application more fragile under parallel reads/writes.

could be solved using db optimisations which sqlite3 provides :)

@rahulharpal1603 - let me know if I can pick this up

Record

  • I agree to follow this project's Code of Conduct

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