SLING-2530 (CRUD) Persisting changes

2012-07-06 Thread Vidar Ramdal
>From https://cwiki.apache.org/confluence/display/SLING/Supporting+CRUD : "Changes are not persisted immediately but stored transient. When all changes are done, a save/commit calls needs to be done trying to persist all changes to all resource providers." Let's say a changeset involves several re

Re: SLING-2530 (CRUD) Persisting changes

2012-07-06 Thread Carsten Ziegeler
Hi Vidar, 2012/7/6 Vidar Ramdal : > From https://cwiki.apache.org/confluence/display/SLING/Supporting+CRUD : > "Changes are not persisted immediately but stored transient. When all > changes are done, a save/commit calls needs to be done trying to > persist all changes to all resource providers."

Re: SLING-2530 (CRUD) Persisting changes

2012-07-06 Thread Bertrand Delacretaz
On Fri, Jul 6, 2012 at 12:07 PM, Carsten Ziegeler wrote: > ...I think we can either choose one of two ways: > - persist each change immediately; this was my initial idea. But > obviously this has performance and consistency drawbacks. Consistency > could be sovled with JTA transactions. > - keep c

Re: SLING-2530 (CRUD) Persisting changes

2012-07-06 Thread Carsten Ziegeler
2012/7/6 Bertrand Delacretaz : > On Fri, Jul 6, 2012 at 12:07 PM, Carsten Ziegeler > wrote: >> ...I think we can either choose one of two ways: >> - persist each change immediately; this was my initial idea. But >> obviously this has performance and consistency drawbacks. Consistency >> could be