Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335448

Summary: CacheBasedValueHolder for Collections should use IN not perform multiple queries
Product: z_Archived Reporter: Gordon Yorke <gordon.yorke>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: P2 CC: eclipselink.foundation-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Gordon Yorke CLA 2011-01-26 09:48:36 EST
Currently when a CacheBasedValueHolder is executed it issues a read object query for each of the items in the collection.  If the Elements are no longer in the cache this can result in terribly inefficient querying.

The solution is to page the elements into IN queries as we do for Batch reading.
Comment 1 Gordon Yorke CLA 2011-04-13 15:02:33 EDT

*** This bug has been marked as a duplicate of bug 337319 ***
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:14:49 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:20:52 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink