Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322897 - AbstractModelQuery : optimize query evaluations
Summary: AbstractModelQuery : optimize query evaluations
Status: CLOSED FIXED
Alias: None
Product: MoDisco
Classification: Modeling
Component: Infrastructure (show other bugs)
Version: 0.9.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 0.9.0 M1   Edit
Assignee: Nicolas Bros CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-17 08:53 EDT by Nicolas Bros CLA
Modified: 2013-04-29 07:54 EDT (History)
4 users (show)

See Also:
nicolas.bros: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.