[xquery-talk] xquery with large xml file

Michael Kay mhk at mhk.me.uk
Wed Apr 19 17:22:09 PDT 2006


> [Per Bothner] tried this:
> 
> declare function local:pathOfNode($node) {
>    if(empty($node/..)) then ""  else
>     concat(local:pathOfNode($node/..), "/", 
> local-name($node)) }; let $j:= doc("file:/tmp/standard") for 
> $n in  $j//* return
> local:pathOfNode($n)
> 
> on the 100MB "standard" XMark test file, and then did:
> 
> $ java kawa.repl --main -C /tmp/path.xq
> $ (date; java -Xmx600m path ; date)>&/tmp/log
> 
> That triggered a bug.  After fixing that bug, it seems to 
> have made it through, taking 8 minutes 24 seconds to generate 
> a 75MB file.

I finally got around to running this against the 100Mb data file with Saxon.
It produces the same size output (don't know why the expansion factor should
be different on the 10Mb file) in 5 minutes 45 seconds. 

Michael Kay




More information about the talk mailing list