Changeset: 494145598c81 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=494145598c81
Modified Files:
monetdb5/optimizer/opt_mitosis.c
Branch: default
Log Message:
Minor refinement
diffs (21 lines):
diff --git a/monetdb5/optimizer/opt_mitosis.c b/monetdb5/optimizer/opt_mitosis.c
--- a/monetdb5/optimizer/opt_mitosis.c
+++ b/monetdb5/optimizer/opt_mitosis.c
@@ -20,7 +20,7 @@ OPTmitosisImplementation(Client cntxt, M
BUN r = 0, rowcnt = 0; /* table should be sizeable to consider
parallel execution*/
InstrPtr q, *old, target = 0;
size_t argsize = 6 * sizeof(lng), m = 0;
- /* per op: 6 = (2+1)*2 <= 2 args + 1 res, each with head &
tail */
+ /* per op estimate: 4 args + 2 res*/
int threads = GDKnr_threads ? GDKnr_threads : 1;
int activeClients;
char buf[256];
@@ -97,7 +97,7 @@ OPTmitosisImplementation(Client cntxt, M
* single subplan should ideally fit together.
*/
r = getRowCnt(mb, getArg(p, 0));
- if (r >= rowcnt) {
+ if (r > rowcnt) {
/* the rowsize depends on the column types, assume
void-headed */
row_size = ATOMsize(getBatType(getArgType(mb,p,0)));
rowcnt = r;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list