Could you include your indexes also and XML structure also? -- Walter Meyer http://www.ThatWaltGuy.com - web [EMAIL PROTECTED] - email (303) 949-8369 - cell
-----Original Message----- From: "John Mc Quillan" <[EMAIL PROTECTED]> Sent: Fri, 8 Nov 2002 17:41:59 -0000 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 >--------------------------- > > > >
