It’s time for me to clean up astrid’s usage of LMDB. I never really understood how database handles and transactions relate in LMDB – they feel completely reversed in some ways.
The documentation says you only need to open a database connection once and can then reuse it for future transactions. However, to complete a transaction you must call either abort, reset/renew, or commit – all of which, according to my reading of the documentation close open database connections…
I’m just reusing the database connection in astrid now, and this seems to work, except for some mysterious intermittent read errors.
I need to take some time now and sort out my LMDB mysteries and issues, I think.
- Am I actually using transactions properly?
- Add a collection of procedures to get and set groups of params within a shared transaction
- What the heck are those read errors? (A local instrument cache might be an OK workaround…)
(oops I missed September!)
Log August 2024
Log July 2024
Log June 2024
Log May 2024
Log April 2024
Log March 2024
Log February 2024
Log January 2024
Log December 2023