Hello,

We faced a situation with H2 V2.1.214 where the database file size never 
goes down until all connections are closed (considering a H2 database using 
file system and that the actual quantity of data within the database  is 
stable in time)

This can be a problem for long running databases that are never 
disconnected, since database file size grow forever until it hits file 
system limitations.

With a simple test case where we add and delete the same line over and over 
again in a simple database, we were able to highlight a difference of 
behavior in the "auto compaction" process between version 1.4.200 & version 
2.1.214 

The observation is that, under the same circumstances, H2 V1.4.200 reduces 
the database file size at some point where H2 V2.1.214 never does so until 
all connections are closed.

Details of the test case & result can be found in the related github link :
https://github.com/h2database/h2database/issues/3848

Is this an expected change of behavior?

For long running databases in version 2.1.214 ido you have any advice to 
ensure that the database file size stays stable on the long term and gets 
compacted from time to time when the database remains open, as it used to 
happen in 1.4.200?

Best regards
Pierre-Olivier

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/h2-database/7cdebf03-8f9e-4979-8327-f96d29f02bc8n%40googlegroups.com.

Reply via email to