Changeset: 7739cae15ae2 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=7739cae15ae2
Modified Files:
monetdb5/optimizer/opt_joinpath.mx
Branch: default
Log Message:
Add some debugging info
diffs (29 lines):
diff --git a/monetdb5/optimizer/opt_joinpath.mx
b/monetdb5/optimizer/opt_joinpath.mx
--- a/monetdb5/optimizer/opt_joinpath.mx
+++ b/monetdb5/optimizer/opt_joinpath.mx
@@ -563,13 +563,13 @@ ALGjoinPathBody(Client cntxt, int top, B
j = 0;
estimate = ALGjoinCost(cntxt,joins[0],joins[1],flag);
OPTDEBUGjoinPath
- mnstr_printf(cntxt->fdout,"#joinPath estimate
join(%d,%d) %d\n", joins[0]->batCacheid,
- joins[1]->batCacheid,(int)estimate);
+ mnstr_printf(cntxt->fdout,"#joinPath estimate
join(%d,%d) %d cnt="BUNFMT" %s\n", joins[0]->batCacheid,
+ joins[1]->batCacheid,(int)estimate,
BATcount(joins[0]), postpone[0]?"postpone":"");
for (i = 1; i < top - 1; i++) {
e = ALGjoinCost(cntxt,joins[i], joins[i + 1],flag);
OPTDEBUGjoinPath
- mnstr_printf(cntxt->fdout,"#joinPath estimate
join(%d,%d) %d\n", joins[i]->batCacheid,
- joins[i+1]->batCacheid,(int)e);
+ mnstr_printf(cntxt->fdout,"#joinPath estimate
join(%d,%d) %d cnt="BUNFMT" %s\n", joins[i]->batCacheid,
+
joins[i+1]->batCacheid,(int)e,BATcount(joins[i]), postpone[i]?"postpone":"");
if (e < estimate && ( !(postpone[i] && postpone[i+1])
|| postponed<top)) {
estimate = e;
j = i;
@@ -585,6 +585,7 @@ ALGjoinPathBody(Client cntxt, int top, B
* A left-join sequence only requires the result to be sorted
* against the first operand. For all others operand pairs, the
cheapest join suffice.
*/
+
switch(flag){
case 0:
if ( j == 0) {
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list