We are using H2 in embedded mode on constrained hardware with read/write files. The data model is straightforward, the datasets are moderate in size, and the queries not particularly complex.
The problem is that from time to time a query takes much longer to execute, like 20-100x longer. I expect some internal H2 housekeeping may be causing this (index rebuilding, defrag, compaction or other). Any ideas what tunings we might consider to limit this type of non-deterministic behavior? We have played with transaction log and cache sizing with little effect.