Hi, in my tests with H2 version 1.3.173 i have found that reading a
timestamp value is slow respect other data type.
I have found in DateTimeUtils the function convertDateValueToTimestamp, a
code like:
long ms = getMillis(TimeZone.getDefault(),
yearFromDateValue(dateValue),
monthFromDateValue(dateValue),
dayFromDateValue(dateValue),
(int) h, (int) m, (int) s, 0);
I think TimeZone.getDefault() is not a good idea because it's implemented
how a clone of the original object:
public static TimeZone getDefault() {
return (TimeZone) getDefaultRef().clone();
}
perhaps keep in cache the default timezone can increase speed.
--
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.
For more options, visit https://groups.google.com/groups/opt_out.