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

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.

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