DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
Issue Details (XML | Word | Printable)

Key: NUCCORE-792
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andy Jefferson
Reporter: Andy Jefferson
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
DataNucleus Core

PM.getObjectsById should use bulk load from L2 cache and from datastore where possible

Created: 12/Dec/11 03:36 PM   Updated: 04/Oct/12 05:02 PM   Resolved: 12/Dec/11 03:52 PM
Component/s: Cache, Persistence
Affects Version/s: None
Fix Version/s: 3.0.5

 Description  « Hide
When a user invokes PM.getObjectsById this effectively performs lookups one-by-one for the ids passed. What ought to happen would be
1. Check the L1 cache for all ids
2. Check the L2 cache for ids not yet resolved (single call)
3. Validate the retrieved objects from the cache (if required)
4. Retrieve any other ids from the datastore (and validate as required).

Andy Jefferson added a comment - 12/Dec/11 03:52 PM
SVN trunk now handles this much better in this respect, using bulk loading from the L2 cache

Andy Jefferson made changes - 12/Dec/11 03:52 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Assignee Andy Jefferson [ andy ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 11/Jan/12 05:27 PM
Status Resolved [ 5 ] Closed [ 6 ]
Andy Jefferson made changes - 04/Oct/12 05:02 PM
Component/s JDO [ 10201 ]