Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

database is locked #21

Open
kekxv opened this issue Apr 15, 2024 · 2 comments
Open

database is locked #21

kekxv opened this issue Apr 15, 2024 · 2 comments

Comments

@kekxv
Copy link

kekxv commented Apr 15, 2024

how fix database is locked when run ASYNC?

@lganzzzo
Copy link
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

@kekxv
Copy link
Author

kekxv commented Apr 17, 2024

@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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants