Update of /cvsroot/monetdb/pathfinder/runtime
In directory sc8-pr-cvs16:/tmp/cvs-serv11122
Modified Files:
pathfinder.mx pf_support.mx
Log Message:
- use prefiltering indexes whenever the context set is 'significant'
Index: pathfinder.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/pathfinder.mx,v
retrieving revision 1.343
retrieving revision 1.344
diff -u -d -r1.343 -r1.344
--- pathfinder.mx 18 Apr 2007 19:50:25 -0000 1.343
+++ pathfinder.mx 19 Apr 2007 11:11:15 -0000 1.344
@@ -1950,7 +1950,7 @@
vxt := vxt.tmark([EMAIL PROTECTED]);
# eliminate too frequent values from the index
- var lim := 8192;
+ var lim := 2048;
var sel := histogram(vxt);
sel := [<](sel, lim);
sel := vxt.leftjoin(sel).tmark([EMAIL PROTECTED]).access(BAT_WRITE); #
true for infrequent values
Index: pf_support.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/pf_support.mx,v
retrieving revision 1.211
retrieving revision 1.212
diff -u -d -r1.211 -r1.212
--- pf_support.mx 19 Apr 2007 08:13:58 -0000 1.211
+++ pf_support.mx 19 Apr 2007 11:11:15 -0000 1.212
@@ -1660,7 +1660,9 @@
@= prefilter
cands := ws.fetch(PRE_SIZE).fetch(contID).mirror();
var pre_cont := ws.fetch(PRE_CONT).fetch(contID);
- if (is_constant(pre_cont) and (count(result_part_item) >
16*log2(count(cands)))) {
+ if (is_constant(pre_cont) and (count(result_part_item) > 2048)) {
+print(count(result_part_item));
+print(count(cands));
var qn_sel :=
ws.fetch(@2).fetch(bat2constant(pre_cont)).ord_uselect(@1);
if (isnil(CATCH(cands := ws_lookup(ws, contID,
qn_sel.mirror())))) {
var map_pid := ws.fetch(MAP_PID).fetch(contID);
-------------------------------------------------------------------------
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