-
Notifications
You must be signed in to change notification settings - Fork 287
event cache: running into unique constraint failures #4785
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
Comments
bnjbvr
added a commit
that referenced
this issue
Mar 11, 2025
As opposed to WAL mode, foreign keys must be enabled for each database connection, according to https://www.sqlite.org/foreignkeys.html#fk_enable Unfortunately, we can't track which connection objects have already executed the pragma, so the safer we can do is enable it everytime we try to acquire a connection from the pool. Fixes #4785.
Got a patch for this in #4779. |
bnjbvr
added a commit
that referenced
this issue
Mar 11, 2025
As opposed to WAL mode, foreign keys must be enabled for each database connection, according to https://www.sqlite.org/foreignkeys.html#fk_enable Unfortunately, we can't track which connection objects have already executed the pragma, so the safer we can do is enable it everytime we try to acquire a connection from the pool. Fixes #4785.
bnjbvr
added a commit
that referenced
this issue
Mar 11, 2025
As opposed to WAL mode, foreign keys must be enabled for each database connection, according to https://www.sqlite.org/foreignkeys.html#fk_enable Unfortunately, we can't track which connection objects have already executed the pragma, so the safer we can do is enable it everytime we try to acquire a connection from the pool. Fixes #4785.
bnjbvr
added a commit
that referenced
this issue
Mar 11, 2025
As opposed to WAL mode, foreign keys must be enabled for each database connection, according to https://www.sqlite.org/foreignkeys.html#fk_enable Unfortunately, we can't track which connection objects have already executed the pragma, so the safer we can do is enable it everytime we try to acquire a connection from the pool. Fixes #4785.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Running
multiverse
locally with a big test account that has some ignored users, I can easily trigger unique constraint failures, for room gaps:as it's triggering #4784, this will clear the storage. But! in the logs of the second run, I can see issues related to unique constraints failures:
Blocker for #3280.
cc @Hywan
The text was updated successfully, but these errors were encountered: