collection function evaluation time

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

collection function evaluation time

محمد جواد حسنی
Dear all,

The collection function evaluation time is increased respect to number of documents. Is a way to optimize this time for large collection?

Regards.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: collection function evaluation time

محمد جواد حسنی
For example, collection function for a given uri  return 340,000 documents in 400 ms and for another one return 10,000 documents in 150 ms. 
Is this time depend on collection cache size?

Thanks.

‪On Wed, Mar 29, 2017 at 12:13 PM ‫محمد جواد حسنی‬‎ <[hidden email]> wrote:‬
Dear all,

The collection function evaluation time is increased respect to number of documents. Is a way to optimize this time for large collection?

Regards.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: collection function evaluation time

Adam Retter
There are lots of factors involved.

The first concern is query vs serialization time. So how much time is
the query taking, vs how much time to serialize and give you all the
results. If you can cut down the amount of data you serialize or split
it into pages of n results at a time this can help.

Regards query time, you need to know about indexes and optimizing your
XQuery. What indexes are you currently using? Indexing is detailed
here - http://exist-db.org/exist/apps/doc/indexing.xml


On 5 April 2017 at 06:04, محمد جواد حسنی <[hidden email]> wrote:

> For example, collection function for a given uri  return 340,000 documents
> in 400 ms and for another one return 10,000 documents in 150 ms.
> Is this time depend on collection cache size?
>
> Thanks.
>
> ‪On Wed, Mar 29, 2017 at 12:13 PM ‫محمد جواد حسنی‬‎
> <[hidden email]> wrote:‬
>>
>> Dear all,
>>
>> The collection function evaluation time is increased respect to number of
>> documents. Is a way to optimize this time for large collection?
>>
>> Regards.
>>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Exist-open mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/exist-open
>



--
Adam Retter

eXist Developer
{ United Kingdom }
[hidden email]
irc://irc.freenode.net/existdb

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Loading...