> SET UNDO_LOG 0 - turns off undo log (I do not need rollbacks)
> SET LOCK_MODE ?
> SET LOG ?
I wouldn't disable the undo log, unless you have very large
transactions. Also, I wouldn't change the other settings unless you
fully understand what those mean - see the documentation for more
information.
> Clustered indices are designed for that sort of thing, but AFAIK H2 doesn't support that yet; maybe when the new page store scheme is implemented?
Yes, that's the plan. Clustered indices should be easy to add once the
"page store" is done.
> settings ... for optimizing queries on large tables
Sorry, I don't think there are settings that would help.
Regards,
Thomas
>> CREATE MEMORY TABLE
> You're perfectly safe, but recreating the index & rebuilding
> from the log after an unclean shutdown may be very slow for large
> tables.
> b)AFAIK you cannot control how much heap a MEMORY table uses, except
> by limiting how many rows it has.
Exactly. The indexes are kept fully in memory, and with the indexes
some of the data. It doesn't really work for large tables, except if
you have a lot of memory, and don't mind if opening the database is
slow.
> Using a very large
> cache_size (yes, that was right) should give similar results to using
> a memory table.
This would be the preferred option.
Regards,
Thomas