Changeset: bd610b1f7e24 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/bd610b1f7e24
Modified Files:
        monetdb5/optimizer/opt_mitosis.c
Branch: Sep2022
Log Message:

small change to mitosis partitioning


diffs (14 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
@@ -181,7 +181,9 @@ OPTmitosisImplementation(Client cntxt, M
                        /* the number of pieces affects SF-100, going beyond 8x 
increases
                         * the optimizer costs beyond the execution time
                         */
-                       pieces = threads * ((int) ceil((double)rowcnt / m));
+                       pieces = ((int) ceil((double)rowcnt / m / threads));
+                       if (pieces <= threads)
+                               pieces = threads;
                } else if (rowcnt > MINPARTCNT) {
                /* exploit parallelism, but ensure minimal partition size to
                 * limit overhead */
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to