]
Gustavo Fernandes updated ISPN-12318:
-------------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
Query.maxResult() ignored during entity loading
-----------------------------------------------
Key: ISPN-12318
URL:
https://issues.redhat.com/browse/ISPN-12318
Project: Infinispan
Issue Type: Bug
Components: Embedded Querying
Affects Versions: 12.0.0.Dev03
Reporter: Gustavo Fernandes
Assignee: Gustavo Fernandes
Priority: Critical
Fix For: 12.0.0.Dev04
When a query has a maxResult it should not try to load/collect/read/hidrate all hits but
rather restrict it to the requested page size. This causes unnecessary allocations of
Strings and byte[]. In particular, the {{KeyTransformationHandler#stringToKey}} method
produces a large amount of garbage.