Changeset: 88d1e8f74ac2 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/88d1e8f74ac2
Modified Files:
        sql/server/rel_optimizer.c
Branch: default
Log Message:

Give smaller points to temporal type ranges. It helps on tpcds and doesn't hurt 
tpch


diffs (20 lines):

diff --git a/sql/server/rel_optimizer.c b/sql/server/rel_optimizer.c
--- a/sql/server/rel_optimizer.c
+++ b/sql/server/rel_optimizer.c
@@ -420,14 +420,12 @@ exp_count(int *cnt, sql_exp *e)
                case cmp_lt:
                case cmp_lte:
                        *cnt += 6;
-#if 0
                        if (e->l) {
                                sql_exp *l = e->l;
                                sql_subtype *t = exp_subtype(l);
                                if (EC_TEMP(t->type->eclass)) /* give 
preference too temporal ranges */
-                                       *cnt += 200;
-                       }
-#endif
+                                       *cnt += 2;
+                       }
                        if (e->f){ /* range */
                                *cnt += 6;
                                return 12;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to