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 >--------------------------- > > > >
