This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: when to use keys?
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: when to use keys?
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Fri, 13 Oct 2000 10:03:53 +0100
- Reply-To: xsl-list at mulberrytech dot com
> The burning question today at work is whether or not we
> should use keys in our current project.
There are two possible reasons to use keys: performance and usability
(unfortunately the lessons learnt in database theory 25 years ago, that it's
best to keep query syntax and performance hints separate, haven't been
applied in this world).
So (a) use keys if it speeds things up,
and (b) use keys if it makes your stylesheet more readable or manageable,
e.g. by abstracting the query logic into one place that you can easily
change.
The best way to discover if keys speed things up is to try it and see.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list