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

Error "database is locked" in wal mode #1203

Open
YanyunTao opened this issue Dec 19, 2023 · 1 comment
Open

Error "database is locked" in wal mode #1203

YanyunTao opened this issue Dec 19, 2023 · 1 comment

Comments

@YanyunTao
Copy link

In WAL mode, one transaction continues to write to the SQLite database, and another transaction will report the error "database is locked" when creating, updating, and inserting data. Is this a WAL mode configuration problem?

@quarnster
Copy link

WAL doesn't allow concurrent writes. See section 2.2 concurrency, middle paragraph:

However, since there is only one WAL file, there can only be one writer at a time.

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