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
Operations

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).

Sort Order: Ascending order - Click to sort in descending order
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