Update of /cvsroot/monetdb/pathfinder/runtime
In directory sc8-pr-cvs16:/tmp/cvs-serv6210

Modified Files:
        ll_upwards.mx 
Log Message:
When you have a multi-document collection, also use the speculate_skip
code to make big jumps.
So far this has been tested on a single query...


Index: ll_upwards.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/ll_upwards.mx,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- ll_upwards.mx       23 Feb 2007 12:51:42 -0000      1.20
+++ ll_upwards.mx       19 Apr 2007 14:11:13 -0000      1.21
@@ -192,15 +192,7 @@
             pre = skipholes(pre+1, pre_size);
            if (depth == XML_DEPTH_MAX || pre > limit) break; /* SANITY */
 
-        } else if (depth == 0) {
-
-            /* enter another fragment */
-            pre = skipholes(pre+1+pre_size[pre], pre_size);
-           if (pre > limit) break; /* SANITY */
-            root = pre;
-
-       
-        } else if (context[cur].pre <= stack[depth-1] + 
pre_size[stack[depth-1]]) {
+        } else if (depth == 0 || context[cur].pre <= stack[depth-1] + 
pre_size[stack[depth-1]]) {
             oid off = pre;
             int budget = PF_SIBLING_PROBES;
             int cnt = 0;
@@ -218,6 +210,8 @@
                     off = pre; cnt = 0;
                 }
             }
+           if (depth == 0)
+                   root = pre;
         } else {
 
             /* pop the stack */


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to