APSIMInitiative / ApsimX

ApsimX is the next generation of APSIM
http://www.apsim.info
Other
129 stars 159 forks source link

Slow data writing to cleared datastore #8948

Open MikeDoddNZ opened 1 month ago

MikeDoddNZ commented 1 month ago

What happened?

Simulation takes a long time to write data to the data store after the simulation is complete. Message is "Simulations running (waiting for datastore to finish writing) - 362527 operations remaining)" Looking at the .db file in explorer it appears to be cumulatively adding data as the file size increases from the previous value. However, slow write problem occurs even after clearing the data store from a previous simulation. Current workaround is deleting the .db files between simulations. Whatawhata1972-2021.zip

What Operating System are you on?

Windows

sno036 commented 1 month ago

My observation when I was looking over Mike's shoulder was that it was initially quite fast but as soon as the 'empty datastore' options was used the time to tidy up after simulations blew out. Deleting the DB files fixed the issue.