-
Notifications
You must be signed in to change notification settings - Fork 21
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
Query fails due to SQLITE_BUSY error #395
Comments
It turns out that sqlite does not support concurrent access to a database. Therefore, we should drop support for sqlite in ILP kit for production environments. |
We already don't support it for production environments. I forget the exact reason, but I remember us concluding that SQLite would not be safe to use outside of testing and development. That's why we don't have migrations for SQLite, only for Postgres - for SQLite you just have to reset the DB when you upgrade. I'd say it's time to consider dropping all support for SQLite. |
Fine with me. Let me know if this decision is final. I am currently adding support for postgres in |
If the ILP kit is running with sqlite, sometimes a SQL query of the ledger fails (full log here):
ILP kit, plugin-virtual, and ledger both use the same database. This error seems to happen if two processes try to modify the database at the same time.
The text was updated successfully, but these errors were encountered: