> - Are there any guidelines somewhere about checking out the source
> code in an IDE (I use Eclipse). It should be possible to checkout from
> the SVN repository and build using Maven, but all I get when checking
> out the project using subclipse is
I don't know about Maven, but I checkout the H2 trunk using subclipse
and build using the Ant build.xml script that's in the project root
directory. I've also built successfully using the built.bat
command-line script.
> - Does H2 use paging by default? If not, is it possible to use this?
The 'page store' storage engine (PageStore.java) is now used by
default in version 1.2.x. Before that, another algorithm is used
(DiskFile.java). I guess the page store is more interesting for you
(it is also faster).
> - What is the default page size used (assuming paging is used to store
> data on disk).
Currently 2 KB.
> - Are there any guidelines somewhere about checking out the source
> code in an IDE (I use Eclipse).
See http://www.h2database.com/html/build.html
> - How does H2 behave when using a cache size of 0?
You can set the cache size to zero, but there will still be a small
cache (16 items or so).
> it's for running
> some experiments for my master's project, and I'm trying to force the
> system into swapping from and to disk, counting the number of I/O
> operations in the process).
Modern software is not optimized for this scenario, because there is
always a lot of memory available (more than 1 MB). I guess older
software behaves better (but worse if there _is_ a lot of memory).
Regards,
Thomas
> One more thing: Is it possible with the page store to retrieve
> statistics on disk reads and writes (preferably number of pages, but
> number of bytes would also be OK?). I used to query for
>
> SELECT * FROM INFORMATION_SCHEMA.SETTINGS WHERE NAME =
> 'info.FILE_DISK_WRITE' ORDER BY NAME ASC;
> SELECT * FROM INFORMATION_SCHEMA.SETTINGS WHERE NAME =
> 'info.FILE_DISK_READ' ORDER BY NAME ASC;
With the page store, this information is incorrect. I will add the
following information in the next release:
info.FILE_WRITE_TOTAL // since the database was created
info.FILE_WRITE // since the database was opened
info.FILE_READ // since the database was opened
info.CACHE_MAX_SIZE
info.CACHE_SIZE
Regards,
Thomas