-
-
Notifications
You must be signed in to change notification settings - Fork 339
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
Huge sqlite database when writing via API calls #1163
Comments
Oh, another thing I noticed, is the |
Hello,
Not yet, but I think your request is already tracked here (when you say "have it automatically clean up states every now & then"): I tend to think it should be quite easy and straightforward to implement it (not 100% sure), if you want to and have time to take a look. I would be glad to help if so! |
I guess exposing |
I would say so. As stated Paul, we should also check the value and ensure it is strictly positive:
I tend to think we may also let the user configure the other variables too, without much opinion. If you agree that #1121 would solve your issue, would you agree to close your issue and continue the discussion there? |
Yes, that would work for me. Though I would still like to know what caused |
No, that's because of something you already pointed out:
Every action you make on the document, whether it is through the UI or the API, adds a new history entry, explaining why with how you use the document it went so big. |
Oh, I was under the assumption that the history was stored inside the actual document SQLite DB and not the |
That's correct, history is stored inside the SQLite DB, in the The |
I have missed you talked about |
I have set |
Describe the current behavior
I have a python backend service that continuously updates tables with new data on a self-hosted grist-core instance via docker. Over the past months, this has apparently resulted in an SQLite DB that is over 900MB large without snapshots. I could now get rid of most history states via the
/{did}/states/remove
endpoint, resulting in an SQLite DB that is only 500 KB large.Is there some way to disable history writing when using the Python / REST API or have it automatically clean up states every now & then?
Steps to reproduce
Describe the expected behavior
SQLite DB should not grow infinitely on row updates
Where have you encountered this bug?
Instance information (when self-hosting only)
Grist instance:
Browser name, version and platforms on which you could reproduce the bug: chromium
The text was updated successfully, but these errors were encountered: