Issue Details (XML | Word | Printable)

Key: NUCCORE-664
Type: New Feature New Feature
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

Update PersistenceHandler interface to have insertObjects, deleteObjects

Created: 02/Mar/11 06:14 AM   Updated: 01/Apr/11 03:24 PM   Resolved: 02/Mar/11 05:05 PM
Component/s: Datastore Support
Affects Version/s: None
Fix Version/s: 3.0.0.m3


 Description  « Hide
In the case of optimistic txns (delay operations until flush/commit) we could provide insertObjects(), deleteObjects() methods on the StorePersistenceHandler and then the store plugin can do what it needs to insert all in one go, or delete all in one go. This is of particular use where there are objects with no relations.

Andy Jefferson added a comment - 02/Mar/11 05:05 PM
SVN trunk now uses a flag on StorePersistenceHandler to detect if the store has referential integrity and if so do an ordered flush (like now), and for all others to call deleteObjects() for those to be deleted then insertObjects() for the new objects then updateObject() for the remaining objects. Only kicks in with optimistic txns

Andy Jefferson made changes - 02/Mar/11 05:05 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Assignee Andy Jefferson [ andy ]
Fix Version/s 3.0.0.m3 [ 11188 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 01/Apr/11 03:24 PM
Status Resolved [ 5 ] Closed [ 6 ]