-
Notifications
You must be signed in to change notification settings - Fork 95
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
SQLite backend doesn't commit to the .db file #1187
Comments
copybara-service bot
pushed a commit
that referenced
this issue
Oct 29, 2024
…1187 PiperOrigin-RevId: 691047186
copybara-service bot
pushed a commit
that referenced
this issue
Oct 29, 2024
…1187 PiperOrigin-RevId: 691047186
copybara-service bot
pushed a commit
that referenced
this issue
Oct 29, 2024
…1187 PiperOrigin-RevId: 691047186
copybara-service bot
pushed a commit
that referenced
this issue
Oct 29, 2024
…1187 PiperOrigin-RevId: 691047186
copybara-service bot
pushed a commit
that referenced
this issue
Oct 29, 2024
…ddisk. See #1187. Originally executions only occurred in memory but weren't saved to harddisk. PiperOrigin-RevId: 691047186
copybara-service bot
pushed a commit
that referenced
this issue
Oct 29, 2024
…ddisk. See #1187. Originally executions only occurred in memory but weren't saved to harddisk. PiperOrigin-RevId: 691047186
copybara-service bot
pushed a commit
that referenced
this issue
Oct 29, 2024
…ddisk. See #1187. Originally executions only occurred in memory but weren't saved to harddisk. PiperOrigin-RevId: 691047186
copybara-service bot
pushed a commit
that referenced
this issue
Oct 29, 2024
…ddisk. See #1187. Originally executions only occurred in memory but weren't saved to harddisk. PiperOrigin-RevId: 691047186
copybara-service bot
pushed a commit
that referenced
this issue
Oct 29, 2024
…ddisk. See #1187. Originally executions only occurred in memory but weren't saved to harddisk. PiperOrigin-RevId: 691047186
copybara-service bot
pushed a commit
that referenced
this issue
Oct 29, 2024
…ddisk. See #1187. Originally executions only occurred in memory but weren't saved to harddisk. PiperOrigin-RevId: 691080052
Added fix - can you try now with Here are the fixes: 64b0220#diff-68b9f2babfb0c6b142af11017c28772dfa34d54ce13c7928cc57006afcc798af |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
It seems to me that the SQLite implementation of the datastore never commits any of the queries it makes to the database? I believe that it (implicitly) starts a transaction when it calls self._engine.connect(), based on the "Commit as you go" section of the sqlalchemy docs.
vizier/vizier/_src/service/sql_datastore.py
Line 45 in f083e4e
The (implicit) transaction is never committed, so all the changes made are only written to the SQLite journal file, and never to the .db file. I fixed this for my code by adding
self._connection.commit()
after most of the.execute
calls, but I've not read the code in enough detail to know whether they were all in the right place.I wrote a brief reproducible example on colab, here: https://colab.research.google.com/drive/1oLy6b57wbOBaq6aFh9c4QndBX0J1ixVQ?usp=sharing
(or here, as well:)
The text was updated successfully, but these errors were encountered: