cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Koberg" <...@koberg.com>
Subject Re: [provocative] crushing userland
Date Fri, 22 Feb 2002 16:50:47 GMT
Hi,
----- Original Message -----
From: "Vadim Gritsenko" <vadim.gritsenko@verizon.net>


> > From: Kimbro Staken [mailto:kstaken@xmldatabases.org]
> >
> > We need a richer language then XPath to do that. It will come with
> XQuery,
> >   but it's a long way off. We'll need to figure something out in the
> short
> > term, but I'm not sure what. XSL-T is probably the best solution
> today. To
> > keep the size of the result set down you might need to limit the query
> to
> > just retrieving the last 7 days of posts or something along those
> lines.
> > Not ideal, I know.
>
> Isn't Xindice collection already ordered by time document was inserted?
>
> Than simple query like /db/blog/*[position() > last()-20] should work
> then, or something like /db/blog/*[position() =
> last()]/preceding::*[position() < 20] should even inverse the order...
>

this would lead to bad performance. Each time you have to grab all the nodes
in /db/blog

[don't know the structure of the XML...]
you could create a xsl:key on 'time', cache the stylesheet, and access it
much faster.

-Rob


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message