Hi, This is documented at http://h2database.com/javadoc/org/h2/constant/DbSettings.html#QUERY_CACHE_SIZE
Example: drop table test; create table test(id int primary key, name varchar); insert into test select x, space(10000) from system_range(1, 10000); select sum(length(name)) from test; select sum(length(name)) from test; delete from test where id = 1; select sum(length(name)) from test; The first query is slow (500 ms), the second is fast (1 ms), the third is slow again (500 ms). Regards, Thomas On Wed, Mar 27, 2013 at 8:22 PM, Mike Funaro <[email protected]> wrote: > I am windows based for this application. Is there a way > to programmatically put the DB file in memory? Or load certain table into > memory? > > > On Wednesday, March 27, 2013 3:02:38 PM UTC-4, Christoph Läubrich wrote: >> >> If you use a recent Linux, you can copy the database file to the >> /dev/shm depending on your RAM and filesize this could speed up things >> without any headache. >> > -- > You received this message because you are subscribed to the Google Groups > "H2 Database" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/h2-database?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/h2-database?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
