[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

More efficient XPATH

Hi again, long time no see,
I am woring with XmlBlaster again (this time I might even have success
in placing at the core of a new cool project ;-).

I have been experimentling with sort of using XmlBlaster as an in memory
XML store, and querying it with XPATH and get(). The data in the key is
fairly big, and the queries big too.

First I was a little dissapointed, having 4000 document loaded, it
actually took between 3.5 to 4 sec. per query. Far to slow to be able to
use against an interactive gui.

Then I read some of the performance tips (linked from the site) and
redid my queries to start with /xmlBlaster/key/. And guess what: WOAW. I
am now down to 250-300 ms per query (There is still some overhead,
making it take a second once in a while when I document is retrieved).

But basically I wanted to say this: For those who like me naively use
//your-element to place XPATH queries against XmlBlaster will have a 10
fold performance hit compared to use the undocumented xmlBlaster root

Jobba hos oss: http://www.tim.se/weblab
Peter Antman		 Technology in Media, Box 34105 100 26 Stockholm
Systems Architect	 WWW: http://www.tim.se
Email: pra at tim.se	 WWW: http://www.backsource.org
Phone: +46-(0)8-506 381 11 Mobile: 070-675 3942