jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yao Harrison <harrison.g...@gmail.com>
Subject Re: How to limit the nodes amount with xpath query returned
Date Tue, 08 Nov 2005 06:52:15 GMT
Hi Marcel :

   Sure, my question is the same as you thought, and I was agreed with
your opinion that the paging of query result should be the scope of
applications , but imagine that  you have to filter the more than ten
thousands nodes and pick up only 10 objects in it as your hoped every
times  ,  so  we should queried for this big result set every time and
get the small set of query returned only , and this will take the
defect of the application's performance.

  So , I hope to limit the result set amount when query executed and 
returned , just like MySQL's " Limit " statment.


Best Wishes!
Harrison

2005/11/7, Marcel Reutegger <marcel.reutegger@gmx.net>:
> I'm not sure I understand your querstion, but I assume you want to see
> some sort of paging through the query results. E.g. that you can get
> results 1 to 10, then results 11 to 20, and so on. Is that right?
>
> This is something that your application has to take care of. you will
> have to execute the query again for each result 'page' and then skip to
> the desired results.
>
> If this is not what your question was about, please provide a more
> detailed example.
>
> regards
>  marcel
>
>
> Yao Harrison wrote:
> > Hi List :
> >
> > There is a node sets that query returned and listed below :
> >   node 1 , node 2, node .............. node 50
> >
> > well, I need a query on the jcr with the same filter rules on nodes ,
> > but only a part of the all nodes will be returned on each time , and
> > not for the sub list on the all nodes returned .
> >
> > So,how can I got the required result on xpath query String ?
> >
> >
>

Mime
View raw message