Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Prefetch policy
[CDO] Prefetch policy [message #1841979] Sat, 05 June 2021 15:36 Go to next message
Sorour Jahanbin is currently offline Sorour JahanbinFriend
Messages: 1
Registered: May 2021
Junior Member
Hi,

I've just started working with CDO and I cloned code from the Git repository.
I have a question about prefetching and caching. I see that we can load objects on-demand using RevisionPrefetchingPolicy, CollectionLoadingPolicy and CDOFetchAnalyzer. But is it possible that we can load just the features of the object we need instead of the whole object?

For example:

Customer {
attr : name,
attr : address
}

for (Customer c : getCustomers()){
c.name.println();
}

Here, I just care about the name attribute of the Customer and there is no need to load the address as well.

Could you please let me know that CDO supports this? if yes, how (using which classes), I can implement this?

Thanks,
Sorour
Re: [CDO] Prefetch policy [message #1842003 is a reply to message #1841979] Mon, 07 June 2021 05:02 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6587
Registered: July 2009
Senior Member
Loading objects only partially is not supported. If this kind of performance tuning is essential for your use case you must design your model accordingly. E.g., factor the features that don't need to be loaded initially into a separate class /object.

Please be very careful with (ideally avoid) a CollectionLoadingPolicy. It's not compatible with many newer CDO features!


Previous Topic:[CDO] Administrating CDOLocks
Next Topic:Reference a metamodel type from the model
Goto Forum:
  


Current Time: Mon Sep 20 13:44:51 GMT 2021

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

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

Back to the top