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)

Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Andy Jefferson
Votes: 0
Watchers: 0

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

Insert of element into a (FK) List causes shift of all elements after it; make the shift statements batched

Created: 26/Nov/12 03:10 PM   Updated: 31/Dec/12 07:59 PM   Resolved: 26/Nov/12 03:12 PM
Component/s: Connection
Affects Version/s: None
Fix Version/s: 3.2.0.m2

 Description  « Hide
When we have a List field and insert an element at the start it will perform the following
1. Insert the new element
2. Shift the index value by 1 of all elements of the List from the inserted position
3. Set the new element List position

Step 2 should use batched statements (where supported by the RDBMS) but currently doesn't

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 26/Nov/12 03:12 PM
SVN trunk makes this change