That's a good idea. It would only work in the case of PreparedStatement of course.

It should be possible to create a subclass of JdbcResultSet called JdbcPreparedStatementResultSet, which stores the cache in the JdbcPreparedStatement object, so that it is only calculated once for the PreparedStatement.

Care to give it a bash?

On 2012-04-23 22:52, Carl Hasselskog wrote:
Haha, good! But what about the field columnLabelMap? From what I can that is 
re-calcalculated in every new instance of JdbcResultSet. Can't that be cached 
as well?



--
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to