Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] disable lazy loading
[CDO] disable lazy loading [message #889971] Wed, 20 June 2012 12:53 Go to next message
Richard Meyer is currently offline Richard MeyerFriend
Messages: 40
Registered: June 2012
Member
Hy,

Is it possible to disable the lazy loading in cdo (DB Store)?
My Problem is that I need all my objects immediately after start up (execute an emf query).
Is it possible to load the whole data model at once?

Thanks
Richard

[Updated on: Wed, 20 June 2012 12:54]

Report message to a moderator

Re: [CDO] disable the lazy loading [message #890013 is a reply to message #889971] Wed, 20 June 2012 14:57 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6441
Registered: July 2009
Senior Member
Am 20.06.2012 14:53, schrieb Richard Meyer:
> Hy,
>
> Is it possible to disable the lazy loading in cdo (DB Store)?
> My Problem is that I need all my objects immediately after start up (execute an emf query).
> Is it possible to load the whole data model at once?
It's not possible to disable lazy loading in general but you can prefetch subtrees of arbitrary objects, including
resources or folders:

CDOObject.cdoPrefetch(int depth);

Does that help?

Cheers
/Eike

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


Re: [CDO] disable the lazy loading [message #890117 is a reply to message #890013] Thu, 21 June 2012 07:51 Go to previous message
Richard Meyer is currently offline Richard MeyerFriend
Messages: 40
Registered: June 2012
Member
Hy Eike,

Thank you very much for your post.
cdoPrefetch(CDORevision.DEPTH_INFINITE) on my root object loads the whole model.

Richard
Previous Topic:[Resolved] [CDO] - HowTo customise the (de)serialization ?
Next Topic:problem: build emf project
Goto Forum:
  


Current Time: Sat Aug 24 17:32:25 GMT 2019

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

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

Back to the top