-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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] Add option to execute PRAGMA optimize;
on close of a connection
#2111
Comments
I don't believe a specific option for this is necessary as this can be done by using a |
Hello, I would like to try this out. But I have the following questions:
|
That one's a hard call. If the connection is dropped without being explicitly closed then either the program is about to exit and the worker thread might get killed before it finishes running, or an error occurred on the connection that may have left it in a bad state, so I would probably say that it should only be run on an explicit It might be a good idea to note that in the documentation though.
Yeah, if it's set to It makes me wonder if we should have a separate option that sets Also, I didn't notice that the pragma is actually called |
It seems like this issue should be closed since the linked PR resolves it? |
While browsing the SQLite manual, I noticed this section on the
ANALYZE
page: https://www.sqlite.org/lang_analyze.html#recommended_usage_patternThe docs then go on to explain why this is suggested:
I could see something like the following added to
SqliteConnectOptions
:The text was updated successfully, but these errors were encountered: