Hi,
I would appreciate any help on the issue that I am facing where a query is taking more time when executed in memory.
Attached is the sample program.
The details are:
Created a table
Created a few extra columns to achieve functional indexes.
Created indexes on these extra columns
Populated data
Executed test query.
Following are the execution results:
Using the java program, when the query is executed in memory - it takes 1500ms
Using the java program, when the query is executed not in memory - it takes 400ms
When using the H2 console in browser(started from java program using Server.main(null);), the query takes 160ms
Thanks,
Vinod