[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Performance degraded with grouping and sorting.

Subject: Re: Performance degraded with grouping and sorting.
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Sat, 30 Oct 2004 12:16:35 +0200
Re:  Performance degraded with grouping and sorting.
Oh wait, why not predict the performance myself..

In the original code the grouping algorithm starts with picking the first of each ACCT_NBR:

<xsl:for-each select="PROJECTION[count(. | key('group-by-accountnbr', ACCT_NBR)[1]) = 1]">

Well, that is a *very* expensive operation. The index is accessed for _each_ PROJECTION elements, so
about 2000 times! And if each distinct ACCT_NBR 'contains' about 10 PROJECTIONs, 9 out of 10 times
the predicate gives the same result. Very inefficient... :-(

Unfortunatily, I can't think of any other way of determining the first of a group other than
variations on this theme or performing sorting in a previous step and using the index on first items
I suggested.

Anyone good ideas?

Grtz,
Geert

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.