The last SQL script (for 0.6beta) is not H2 compliant : I've changed the syntax.
Here are my benchs results comparing H2 (h2-1.3.159.jar) to Derby on my PC (Intel Q6600 Quad Core @2.4GHz).
Graphs have been made with VisualVM (included in JDK6), you can open results with it.
Scenario : - Fresh new Serviio 0.6b3, transcoding disabled.
- Delete Serviio db between bench.
- Create db. => 1st peak
- Scan a new directory (with around 200 media in sub dir). => 2nd peak
- Add some files (20 files). => 3rd peak
Stats (H2 / Derby) :
- Db size on disk (after test) : ~2Mo / ~3Mo
- Number of files (with lock file) : 3 / 148
- Jar size : 1226ko / 2567ko
- Max CPU usage : 10% / 30%
- Max Heap : 12Mo / 16Mo
- Max Permgen : 15Mo / 20Mo
Conclusion : it seems promising but it should be tested on other platform.