Changeset: a833dbb9f63e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/a833dbb9f63e
Modified Files:
        sql/backends/monet5/rel_bin.c
Branch: Dec2025
Log Message:

Deactivates mitosis for queries with large cmp_disjunctive exps


diffs (16 lines):

diff --git a/sql/backends/monet5/rel_bin.c b/sql/backends/monet5/rel_bin.c
--- a/sql/backends/monet5/rel_bin.c
+++ b/sql/backends/monet5/rel_bin.c
@@ -1999,8 +1999,11 @@ exp_bin(backend *be, sql_exp *e, stmt *l
                        return handle_in_exps(be, e->l, e->r, left, right, grp, 
ext, cnt, sel, (e->flag == cmp_in)^is_anti(e), depth, reduce, push);
                if (e->flag == cmp_con)
                        return exp_bin_conjunctive(be, e, left, right, grp, 
ext, cnt, sel, depth, reduce, push);
-               if (e->flag == cmp_dis)
+               if (e->flag == cmp_dis) {
+                       if (list_length(e->l) > 512)
+                               be->no_mitosis = 1;
                        return exp_bin_disjunctive(be, e, left, right, grp, 
ext, cnt, sel, depth, reduce, push);
+               }
 
                /* mark use of join indices */
                if (right && find_prop(e->p, PROP_JOINIDX) != NULL)
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to