We having TRACE log turned on for BasicBinder to print SQL parameters in log file. Implementation of AbstractTypeDescriptor prints object.toString() value in log.
The issue persists for date parameters. Date.toString() causes initializing of additional fields inside Date which significantly increases Object size.
For instance we have cache-able object containing two Date fields inside. Usual size of object is about 300 bytes. After we use those dates as SQL parameters object size increased to > 2kB.
Would be great if DateTypeDescriptor had overridden implementation of extractLoggableRepresentation method to use some date formatter instead of Date.toString().
Thank you
|