asami

Jakub Holý (HolyJak) 2022-07-26T21:25:37.757519Z

Hi! When do I need to call d/shutdown? I assume I should do it when using a local Asami before shutting down the JVM to ensure that any pending writes have been finished. Is it so? Thank you!

quoll 2022-07-26T21:29:26.344269Z

Not exactly… once a transaction has returned then all pending writes are done. Files are opened to be larger than they need to be. This allows them to be memory mapped as data is allocated in them. Shutdown will truncate the files to just what is written in them

quoll 2022-07-26T21:31:11.852379Z

If the process is killed instead of being shutdown cleanly, the files stay big. But if that happens you open and then shutdown again, and then the file will be correctly truncated

🙏 1