Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Advice on best approach to replacing model content(We want to completely replace the content of a repo)
[CDO] Advice on best approach to replacing model content [message #1385578] Mon, 09 June 2014 12:58 Go to next message
David Wynter is currently offline David Wynter
Messages: 4547
Registered: July 2009
Senior Member
Hi,

We have implemented the import of an xmi file content into a CDO repo. We are using H2 as the store. The problem is these are large models and the repo database get larger and larger, I assume it is keeping the old models in the store? What is the best approach to completely replacing the content with the imported xmi content? We realise we lose all history and versioning of course.

Thanks,

David

[Updated on: Mon, 09 June 2014 12:59]

Report message to a moderator

Re: Advice on best approach to replacing model content [message #1386033 is a reply to message #1385578] Fri, 13 June 2014 02:53 Go to previous message
Eike Stepper is currently offline Eike Stepper
Messages: 5499
Registered: July 2009
Senior Member
Hi David,

Sorry for the late response. I haven't recognized your question as [CDO] related.

Comments below...

Cheers
/Eike

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



Am 09.06.2014 18:58, schrieb David Wynter:
> Hi,
>
> We have implemented the import of an xmi file content into a CDO repo. We are using H2 as the store. The problem is
> these are large models and the repo database get larger and larger, I assume it is keeping the old models in the store?
What do you mean by "old"? I may better understand your problem if you provide your server configuration and more
explanation on how your import actually works.

> What is the best approach to completely replacing the content
Content of what? The entire repository? The history of the imported resource?

> with the imported xmi content? We realise we lose all history and versioning of course.
If your server supports auditing (that's why I asked for the server configuration) then there is no way to replace the
history of any object or resource (other than through custom SQL queries, which is potentially dangerous). Do you need
auditing (version history)?
Previous Topic:using transactional editing domain with multiple command stacks?
Next Topic:CDATA appearing in xsd:any data
Goto Forum:
  


Current Time: Sat Aug 23 03:36:40 EDT 2014

Powered by FUDForum. Page generated in 0.02122 seconds