[Query2] Execute queries on large model [message #757415] |
Fri, 18 November 2011 10:58 |
Nicolas Rousseau Messages: 18 Registered: July 2009 |
Junior Member |
|
|
Hello,
I try to use Emf Query2 but on large model, with "many" resources.
I got a problem on both performances and memory...
Code is a little more complex, but it's based on the same model as:
http://www.eclipse.org/forums/index.php/m/675736/
Only difference maybe is that some queries have some where clause with parameters.
Actually, it will index very fast it seems.... too fast certainly, since it's like nothing done (??)
In my test actually, there is like 750 resources.
(~250 unique items, splitted in 3 resources linked)
All executions of the queries are really slow. (which makes impossible almost to use this tool right now)
It seems all executions will load (and reload...) all resources, and there will be a problem of memory after few queries.
I thought the index will store all the basic info, then later all queries should be fast without have to load any resource... no?
Or maybe something i missed, or something that could improve the index to store more information?
Thanks in advance.
Edit:
Finally "fixed" the problem by using half emf query / half standard emf calls to optimize.
Anyway an answer could be helpfull still. (note that when i execute all the queries, i know my data won't change during this time, so no need to reload all each time)
[Updated on: Mon, 21 November 2011 05:43] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02987 seconds