-
Notifications
You must be signed in to change notification settings - Fork 164
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
Question about the commit strategy #66
Comments
Hi, The commit strategy is implemented in the file
|
Hello, thank your for the reply! I was very interested in using UNQLITE_CONFIG_MAX_PAGE_CACHE, however I realized that the passed value is completely ignored in the default driver, at least in the latest head I downloaded. Basically I'm trying to use unqlite for the cquery project, but I'm running in the memory wall. Unqlite will buffer 30 gb and more I throw at it in memory, no matter how often I place manual commits. I thought that config setting would do the trick, but following the code paths, it merely sets a member in a structure and is not referenced again. :( |
Yes, page caching is delegated to the underlying storage engine which is not required to honor the MAX_PAGE_CACHE instruction. However, you could easily hack the storage engine code now that you have followed the path by just copying the unqlite_close() core code (except closing the handle) when the page cache reaches a maximum limit. |
Please update the library to the last version (1.1.9). There was a memory leak in unqlite_commit() that caused internal data not to be freed. This should solve your issue. |
Thank you, I'm giving it a try! |
Hello, I could not find a source of information about when to place strategic commits. It appeared to me, that unqlite would not commit anything to the file storage until I explicitly commit or close the database. Is there some resource talking about ways to avoid a huge commit on closing the database?
The text was updated successfully, but these errors were encountered: