cahced database like HSQL DB (SET DEFAULT_TABLE_TYPE CATCHED)

59 views
Skip to first unread message

Harish Alwala

unread,
Aug 11, 2012, 11:09:55 AM8/11/12
to h2-da...@googlegroups.com
Hi All
I was using the H2 database as standalone database. Everything was nice until data in the db is loaded huge data. When I run my application with such huge database first thing I notice is; the moment I connect to database whole database is loaded in memory and hence my application slows down and then fall in to out of memory issues.
I googled a lot to fix issue but I could not get the solution. I dont want the complete database to be loaded to memory.

I checked with HSQL DB instead of H2. HSQL has db command as "SET DEFAULT_TABLE_TYPE CATCHED". This will not load complete db to memory instead it will load specified number of rows (cache_rows=<int>)  into cache. And my application works exceptionally well with HSQL DB.

I would like to know if such concept is there in H2, if  yes how to get such feature of HSQL DB in H2?

Regards
Harish Alwala

Thomas Mueller

unread,
Aug 15, 2012, 12:08:05 PM8/15/12
to h2-da...@googlegroups.com
Hi,

I think you need to read the documentation, specially:



Regards,
Thomas




Harish Alwala

--
You received this message because you are subscribed to the Google Groups "H2 Database" group.
To view this discussion on the web visit https://groups.google.com/d/msg/h2-database/-/hWyJMJpB1sEJ.
To post to this group, send email to h2-da...@googlegroups.com.
To unsubscribe from this group, send email to h2-database...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.

Reply all
Reply to author
Forward
0 new messages