Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Persisting CDORevisionCache to filesystem to improve user experience
[CDO] Persisting CDORevisionCache to filesystem to improve user experience [message #1446687] Fri, 17 October 2014 06:47 Go to next message
Leonid Ripeynih is currently offline Leonid RipeynihFriend
Messages: 144
Registered: February 2012
Senior Member
Hi all!

I'm thinking about persisting CDORevisionCache (client side) to disk, to keep it between restarting. Without it, users are often needed to load pretty large models from CDO server upon every restrart of out tool. As it seems to be pretty obvious optimization, but haven't been done yet, I'd like to ask - is there any danger in doing this? As far as I understand CDO, CDORevisionCache only keeps immutable data (CDORevision coordinates (ID, Branch, Version), and revision data (which is immutable as well)), so that should work fine.

Am I wrong?
Re: [CDO] Persisting CDORevisionCache to filesystem to improve user experience [message #1447599 is a reply to message #1446687] Sat, 18 October 2014 15:31 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6325
Registered: July 2009
Senior Member
Hi Leonid,

Long ago André has created a DB-based CDORevisionCache. You may want to study
http://git.eclipse.org/c/cdo/cdo.git/tree/plugins/org.eclipse.emf.cdo.common.db/src/org/eclipse/emf/cdo/common/db/CDOCommonDBUtil.java
..

It hasn't been maintained for quite a while, so it might be broken.

Cheers
/Eike

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



Am 17.10.2014 um 08:47 schrieb Leonid Ripeynih:
> Hi all!
>
> I'm thinking about persisting CDORevisionCache (client side) to disk, to keep it between restarting. Without it, users
> are often needed to load pretty large models from CDO server upon every restrart of out tool. As it seems to be pretty
> obvious optimization, but haven't been done yet, I'd like to ask - is there any danger in doing this? As far as I
> understand CDO, CDORevisionCache only keeps immutable data (CDORevision coordinates (ID, Branch, Version), and
> revision data (which is immutable as well)), so that should work fine.
> Am I wrong?
Re: [CDO] Persisting CDORevisionCache to filesystem to improve user experience [message #1448669 is a reply to message #1447599] Mon, 20 October 2014 09:07 Go to previous messageGo to next message
Leonid Ripeynih is currently offline Leonid RipeynihFriend
Messages: 144
Registered: February 2012
Senior Member
Eike Stepper wrote on Sat, 18 October 2014 15:31
Hi Leonid,

Long ago André has created a DB-based CDORevisionCache. You may want to study
http://git.eclipse.org/c/cdo/cdo.git/tree/plugins/org.eclipse.emf.cdo.common.db/src/org/eclipse/emf/cdo/common/db/CDOCommonDBUtil.java
..

It hasn't been maintained for quite a while, so it might be broken.

Cheers
/Eike

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


Thanks for a viable pointer, Eike!

Am I understood it right, that the current implementation of DBRevisionCache does not support branching?
Re: [CDO] Persisting CDORevisionCache to filesystem to improve user experience [message #1448686 is a reply to message #1448669] Mon, 20 October 2014 09:38 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6325
Registered: July 2009
Senior Member
Am 20.10.2014 um 11:07 schrieb Leonid Ripeynih:
> Thanks for a viable pointer, Eike!
>
> Am I understood it right, that the current implementation of DBRevisionCache does not support branching?
http://git.eclipse.org/c/cdo/cdo.git/tree/plugins/org.eclipse.emf.cdo.common.db/src/org/eclipse/emf/cdo/common/internal/db/cache/DBRevisionCacheSchema.java
looks like it. I don't remember exactly but it's well possible that the DBRevisionCache was implemented long before CDO
started to support branching.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Previous Topic:Adding Javadoc to the Model
Next Topic:MAP
Goto Forum:
  


Current Time: Sat Nov 18 10:32:45 GMT 2017

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

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