i don't think it does... or perhaps i'm misreading it. the xpath expression
evaluated in the test are :
/*/*/Attr1x1
/*/*/Attr1x500
/*/*/Attr1x999
/*/*/Item
/*/[EMAIL PROTECTED]"1"]
/*/[EMAIL PROTECTED]"500"]
/*/[EMAIL PROTECTED]"999""]
These are not the '//' style expressions. An example of the '//' style
expression might be:
//title
where the xml looked like:
<book>
<title>Foo bar</title>
<chapter num="1">
<title>Why XPath Rocks</title>
<para>Xpath helps me do my job.</para>
</chapter>
<chapter num="2">
<title>Why XPath Sucks</title>
<para>Too much to learn.</para>
<section>
<title>Yada Yada Yada</title>
<para>blah blah blash</para>
</section>
</chapter>
</book>
The '//title' xpath expression would return 'Foo bar', 'Why XPath Rocks',
'Why XPath Sucks', and 'Yada Yada Yada'.
See also http://www.topxml.com/xsl/XPathRef.asp for info on the //
shorthand.
dave
-----Original Message-----
From: John Mc Quillan [mailto:[EMAIL PROTECTED]
Sent: Friday, November 08, 2002 9:42 AM
To: [EMAIL PROTECTED]
Subject: RE: speeding up XPATH
Have a look at the following link, which suggests that the contrary
might be true. I've not verified this or looked at the code to try and
figure out why but the tests seem to suggests that // type constructs
are in fact faster.
http://dom4j.org/benchmarks/xpath/index.html
John Mc Quillan
+353 (01) 4100681
http://www.openjawtech.com
-----Original Message-----
From: Dave Viner [mailto:[EMAIL PROTECTED]
Sent: 08 November 2002 17:29
To: [EMAIL PROTECTED]
Subject: RE: speeding up XPATH
Also, the exact XPath expression makes a major difference in speed. In
general, avoid '//' type queries because they force the engine to
examine
the entire tree. Could you supply the xpath expressions you are using ?
dave
-----Original Message-----
From: Terry Rosenbaum [mailto:[EMAIL PROTECTED]
Sent: Friday, November 08, 2002 4:21 AM
To: [EMAIL PROTECTED]
Subject: Re: speeding up XPATH
> Is there any way to speed ... [xpath] up ?
One thing that came up recently on this list
was a defficiency in xerces causing slow XPath
searching. A workaround for the problem is to
supply the following command line arguments to
your JVM:
-Dorg.apache.xml.dtm.DTMManager=org.apache.xml.dtm.ref.DTMManagerDefault
to
your JVM.
(You could also place the necessary property in system properties from
within
your program.)
See: http://marc.theaimsgroup.com/?l=xindice-dev&m=103470582225684&w=2
<http://marc.theaimsgroup.com/?l=xindice-dev&m=103470582225684&w=2>
-Terry
Koen Gogne wrote:
>Dear all,
>
>I have set up a collection with lots of (small) xml-files.
>Querying these files takes very (unacceptably) long.
>
>Is there any way to speed this up ?
>
>I have tried using xindiceadmin 'add_indexer', but that doesn't seem to
>have any effect.
>I've also tried to by-pass the xindice/xindiceadmin-tools by running
the
>query from within a java script, hoping it would speed up the process.
>No luck however.
>
>Can anyone tell me a solution ?
>Can anyone provide me with some sample java-code that does the trick ?
>
>greetz,
>Koen Gogne
>---------------------------
>Koen Gogne
>NSS nv
>Tieltstraat 167
>8740 Pittem
>Tel. ++32 (0)51 42 40 15
>Fax. ++32(0)51 40 29 22
>---------------------------
>
>
>
>