Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 322897

Summary: AbstractModelQuery : optimize query evaluations
Product: [Modeling] MoDisco Reporter: Nicolas Bros <nicolas.bros>
Component: InfrastructureAssignee: Nicolas Bros <nicolas.bros>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: fabien.giquel, gdupe, hugo.bruneliere, modisco.web-inbox
Version: 0.9.0Flags: nicolas.bros: indigo+
Target Milestone: 0.9.0 M1   
Hardware: All   
OS: All   
Whiteboard:

Description Nicolas Bros CLA 2010-08-17 08:53:31 EDT
At the moment, to provide an implementation of AbstractModelQuery you must implement basicEvaluate, which takes a single context element.
When evaluating a query on several context elements, basicEvaluate is called repeatedly with each context element.
For some implementations that make use of a system with which you must establish a connection (eg a database) for each call, this is costly.

To solve this, we can add 2 methods: startEvaluate and endEvaluate in AbstractModelQuery, so that the implementation can be optimized.
Comment 1 Nicolas Bros CLA 2010-08-17 09:58:33 EDT
Implemented in revision 2929.
Comment 2 Hugo Bruneliere CLA 2010-10-05 04:46:53 EDT
Bug fixed.