History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: COR-1909
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Fabio Roger Manera
Reporter: Patrick Roemer
Votes: 0
Watchers: 0
Operations

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

Avoid updating unmodified Activatable objects in TP mode (activated collection items)

Created: 20/Apr/10 01:55 PM   Updated: 03/May/10 02:54 PM
Component/s: None
Affects Version/s: 7.13.143
Fix Version/s: 8.0.145

Time Tracking:
Not Specified

Issue Links:
Related
 

Peers: Patrick Roemer
Order: 3
Iteration: 145
Resolution Date: 03/May/10 02:54 PM
Labels:
Participants: Fabio Roger Manera and Patrick Roemer
Number of Attachments: 0
Number of Comments: 0


 Description  « Hide
For a (global or class specific) configured update depth > 1 (in particular collections), activated - but unmodified - child elements will be updated.

// all classes involved (Holder, Item, Collection) implement Activatable
Holder holder = retrieveOnlyInstance(Holder.class);
holder.collection().get(0).id()); // activate
holder.collection().add(new Item(43)); // modify collection structure
db.commit(); // activated item will be updated in db

see ActivatableListUpdateTestCase in staging

Potential solution: The TP aware update depth could carry a reference to the modified set along with the tp commit mode and could skip updating Activatable objects that are not listed as modified.


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.