Bug 40792

GemStone/S 64 Bit

2.4.4, 2.4.3, 2.4.2, 2.4.1, 2.4, 2.3.1.6, 2.3.1, 2.3, 2.2.5.4, 2.2.5.3, 2.2.5.2, 2.2.5.1, 2.2.5, 2.2.x, 2.2, 2.1.x

All

2.4.4.2

Query performance degradation on Date due to incompletely cached value

The internal structures used to implement equality indexes, btrees, cache
portions of the values of certain data types within their structure, to
avoid faulting in the actual object for some comparisons.

The code that caches Date instances was incorrect, resulting in the year
portion of the Date not being cached. This did not cause any functional
errors, but performance could be impacted as the Date object always had
to be faulted into memory for comparison.

Note that this is Date, not DateTime. DateTime values are not cached in
the btree, so in most cases Date will provide better performance.

Workaround

Clustering the Dates involved in an index will reduce page demand and improve
performance.


Last updated: 8/10/10