See http://www.h2database.com/html/performance.html#database_performance_tuning
Most of the tips also apply to in-memory databases (there are
exceptions of course: Virus Scanners, Cache Size and Type).
Regards,
Thomas
> As I can see hash indexes can be used only for unique keys.
> What about non-unique implementation? I mean holding
> for each hash collection of rows. Will it give performance gains
> for some scenarios?
An in-memory hash index for non-unique keys is possible. In theory it
should be a bit faster than the current AVL tree for larger in-memory
tables. While I don't plan to implement such an index myself, you are
welcome to implement it if you want.
Regards,
Thomas