Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359432 - Reduce network operation on resource existence checking
Summary: Reduce network operation on resource existence checking
Status: ASSIGNED
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.core (show other bugs)
Version: 4.13   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Egidijus Vaisnora CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-29 10:21 EDT by Egidijus Vaisnora CLA
Modified: 2020-12-11 10:46 EST (History)
1 user (show)

See Also:


Attachments
Patch v1 (3.69 KB, patch)
2011-09-29 10:25 EDT, Egidijus Vaisnora CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Egidijus Vaisnora CLA 2011-09-29 10:21:14 EDT
Calling AbstractCDOView.hasResource always results in the network call because it query top level resource on the server.

 I think, we should avoid network calls as much as possible and use caches. We have already cached root resource in the CDOView and we can use it for finding resources or folders under the root resource containment.
Comment 1 Egidijus Vaisnora CLA 2011-09-29 10:25:33 EDT
Created attachment 204297 [details]
Patch v1

Instead of query to server, patch uses cached root resource to search folder or resource by name.
Comment 2 Egidijus Vaisnora CLA 2011-09-29 10:35:49 EDT
Was fixed few tests, however left failing PushTransactionTest.testAddNewResource. But IMO it uses incorrectly CDO. It places one resource into another's resource containment. I assume, that resource must be allowed to add only into ROOT resource or CDO folder. Is it true?
Comment 3 Eike Stepper CLA 2012-08-14 22:56:48 EDT
Moving all open issues to 4.2. Open bugs can be ported to 4.1 maintenance after they've been fixed in master.
Comment 4 Eike Stepper CLA 2013-06-27 04:07:25 EDT
Moving all outstanding enhancements to 4.3
Comment 5 Eike Stepper CLA 2014-08-19 09:25:50 EDT
Moving all open enhancement requests to 4.4
Comment 6 Eike Stepper CLA 2014-08-19 09:36:18 EDT
Moving all open enhancement requests to 4.4
Comment 7 Eike Stepper CLA 2015-07-14 02:20:01 EDT
Moving all open bugzillas to 4.5.
Comment 8 Eike Stepper CLA 2016-07-31 01:02:48 EDT
Moving all unaddressed bugzillas to 4.6.
Comment 9 Eike Stepper CLA 2017-12-28 01:12:11 EST
Moving all open bugs to 4.7
Comment 10 Eike Stepper CLA 2019-11-08 02:04:52 EST
Moving all unresolved issues to version 4.8-
Comment 11 Eike Stepper CLA 2019-12-13 12:51:19 EST
Moving all unresolved issues to version 4.9
Comment 12 Eike Stepper CLA 2020-12-11 10:46:45 EST
Moving to 4.13.