Skip to content

database is locked #21

Open
Open

Description

@kekxv

how fix database is locked when run ASYNC?

Activity

  1. lganzzzo commented on Apr 16, 2024

    @lganzzzo
    Member

    Hello @kekxv ,

    Most probably you are getting database is locked error when trying to read/write DB from multiple threads simultaneously.

    To fix that just set you DB connection pool to max 1 connection

  2. kekxv commented on Apr 17, 2024

    @kekxv
    Author

    @lganzzzo thank you for your reply.

    image

    you mean maxResources?I tried changing it to 1 but it became very slow. include select.

    Will database is locked exist between reading and writing? Can add a write lock?

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

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