Thank you for your answer.
Like i'm a newbie on Exist I didn't know the getMembersAsResource method.
Using this method improves the performance and I got now 500ms.
I will continue my test ;)
----- Mail Original -----
De: "Wolfgang Meier" <wolfgang@...>
Envoyé: Jeudi 25 Mars 2010 11h01:00 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne
Objet: Re: [Exist-open] Tuning performance / Lazy evaluation
> The search query return quite fast (around 30ms) but the retrieve of the results (getContent)
> is quite slow. It takes 2000ms to iterate over the 2000 results.
> After search it's the lazy evaluation that resolve the nodes at getContent.
> Is the duration of 2000ms is normal or is there is some tuning to do ?
It certainly depends on what exactly you need to do with the results?
If you need to post-process them in any way, it is usually much more
efficient to do that in an XQuery on the server instead of using Java
code on the client.
If you really have to retrieve a large result set and you are
accessing eXist through the network, using
ResourceSet.getMembersAsResource() might be an option. Anyway, maybe
you could provide some more hints.
Get latest updates about Open Source Projects, Conferences and News.