Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Usage of property 'supportingAudits' in server config([CDO] Usage of property 'supportingAudits' in server config)
[CDO] Usage of property 'supportingAudits' in server config [message #899062] Mon, 30 July 2012 12:13 Go to next message
Uri JOC is currently offline Uri JOCFriend
Messages: 2
Registered: July 2012
Junior Member
Hello and good day,

I am new to CDO but have nevertheless been working with it for some weeks now. Right now I'm using DBStore as CDO store variant. I have come across the property 'supportingAudits' and would like to see it in action, but I couldn't find any examples to get into it faster. Could someone please provide a short HowTo so I can try it out in our application? E. g. what do I have to give an Object so it gets audited? I have the prop in cdo-server-db.xml set, but of course I need a little bit more.

Further, until now I am not sure about its functionality (supportingAudits), besides providing finer grained revisioning for the Objects. e. g. modify an obj. 5x -> get five versions of the object in the database. Is this right?

Much thanks in advance,

Uri
Re: [CDO] Usage of property 'supportingAudits' in server config [message #899116 is a reply to message #899062] Mon, 30 July 2012 15:04 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6441
Registered: July 2009
Senior Member
Am 30.07.2012 14:13, schrieb Uri JOC:
> Hello and good day,
>
> I am new to CDO but have nevertheless been working with it for some weeks now.
Welcome ;-)

> Right now I'm using DBStore as CDO store variant. I have come across the property 'supportingAudits' and would like to
> see it in action, but I couldn't find any examples to get into it faster. Could someone please provide a short HowTo
> so I can try it out in our application? E. g. what do I have to give an Object so it gets audited? I have the prop in
> cdo-server-db.xml set, but of course I need a little bit more.
I don't have the time to write a how-to about auditing but it's not that difficult. You set the supportingAudits
property to true on a *new* repository. Then, whenever your client commits changes the old revisions are not overwritten
but kept in the DB. Note, that CDOTransaction.commit() returns a CDOCommitInfo which, in turn, provides you with the
exact commit timestamp (the commit ID). You can use this timestamp (or any other timestamp between repository creation
and now) with CDOView.setTimeStamp() to look at the object graph as it was at that time.

Auditing is a repository-wide setting and can not be different for particular objects.

> Further, until now I am not sure about its functionality (supportingAudits), besides providing finer grained
> revisioning for the Objects. e. g. modify an obj. 5x -> get five versions of the object in the database. Is this right?
Yes, that sounds right.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: [CDO] Usage of property 'supportingAudits' in server config [message #899182 is a reply to message #899116] Mon, 30 July 2012 21:33 Go to previous messageGo to next message
Uri JOC is currently offline Uri JOCFriend
Messages: 2
Registered: July 2012
Junior Member
Hello Eike,

that sort of sums up what I needed to know, thanks for the fast reply Wink

One last though: Do you have any experience/good guess about the impact of enabling auditing on the overall performance? Of course there will be more SQL-statements being triggered, but how would it e. g. scale?

Greetings

Uri
Re: [CDO] Usage of property 'supportingAudits' in server config [message #899212 is a reply to message #899182] Tue, 31 July 2012 06:08 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6441
Registered: July 2009
Senior Member
Am 30.07.2012 23:33, schrieb Uri JOC:
> Hello Eike,
>
> that sort of sums up what I needed to know, thanks for the fast reply ;)
>
> One last though: Do you have any experience/good guess about the impact of enabling auditing on the overall
> performance? Of course there will be more SQL-statements being triggered, but how would it e. g. scale?
From what I heard the impact on performance is not too bad. Make sure that you use the "horizontalAuditingWithRanges"
mapping strategy with DBStore if you work with large list features. That said, it's always best to prototype and measure
your specific scenarios.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Previous Topic:genmodel is not created because of missing type argument
Next Topic:[CDO] Productive Use and Schema Evolution
Goto Forum:
  


Current Time: Mon Aug 19 09:50:53 GMT 2019

Powered by FUDForum. Page generated in 0.02104 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top