Whoa!

I finally mastered latest build of xindice1.1b installed as a tomcat app on
W2K platform. I understand that the "official" line is to use 1.1 rather
than 1.0, however speed of access is very important for the application I'm
developing. So far I'm seeing this when executing the same XPath query on
the same collection:

1. Executing query on raw(non-indexed collection) 
   1.0 - 16500 ms, 1.1 - 63540 ms
2. After adding indexes - 
   1.0 - 400 ms, 1.1 - 1016 ms

Here's the code

String xpath = "/node[country='US'][language='en'][role='Employee']/id";
XPathQueryService service =
(XPathQueryService) col.getService("XPathQueryService", "1.0");
long elapsedTime = new java.util.Date().getTime();
ResourceSet resultSet = service.query(xpath);
elapsedTime = new java.util.Date().getTime() - elapsedTime;
System.out.println("Query time - " + elapsedTime + "ms");

As you can see I'm measuring time right before and after the query so I can
blame the time increase on the slower startup time (can I?)

The collection consists of roughly 6500 simple xml files between 2 - 7K
each. 
Such performance degrading will almost definitely swing the pendulum towards
1.0 for my project

Can anyone comment on this? 

Bob Stone

P.S. I'm not trying to start the war, I really need the honest opinion
P.P.S. Example of XML

<?xml version="1.0" encoding="UTF-8"?>
<node type="module">
    <id>modClubsLeaguesRecreation_US_en_Manager</id>
    <country>US</country>
    <language>en</language>
    <role>Manager</role>
    <title>clubs, leagues, &amp; recreation</title>
    <node type="link">
        <title>Employee Clubs</title>
        <url>http://blah.com/clubs/index.htm</url>
        <target>_top</target>
    </node>
    <node type="link">
        <title>Recreational Leagues and Teams</title>
        <url>http://blah.com/rec_activities/index.htm</url>
        <target>_top</target>
    </node>
    <node type="link">
        <title>Recreation Sites</title>
        <url>http://blah.com/epws/rec_sites.htm</url>
        <target>_top</target>
    </node>
    <node type="link">
        <title>* More</title>
        <url>http://blah.com:8080/hrhelp/iex-cat-index_TST.htm#clubs</url>
        <target>_top</target>
    </node>
</node>

Reply via email to