Changeset: 897717064f69 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=897717064f69
Modified Files:
sql/src/server/rel_optimizer.mx
Branch: Jun2010
Log Message:
Add workaround for too expensive optimisation for SkyTec.
The details are in bug #2595. Using debug=65536 we can now
(temporarily) disable the expensive or-style optimisation of selection
push-downs.
diffs (19 lines):
diff -r f205fff0936f -r 897717064f69 sql/src/server/rel_optimizer.mx
--- a/sql/src/server/rel_optimizer.mx Wed Jul 07 15:34:53 2010 +0200
+++ b/sql/src/server/rel_optimizer.mx Wed Jul 07 15:51:45 2010 +0200
@@ -1073,8 +1073,13 @@
return e;
case e_cmp:
if (e->flag == cmp_or) {
- list *l = exps_push_down(sql, e->l, f, t);
- list *r = exps_push_down(sql, e->r, f, t);
+ list *l;
+ list *r;
+ /* for SkyTec's query in bug #2595, allow to disable
this */
+ if (mvc_debug_on(sql, 65536))
+ return NULL;
+ l = exps_push_down(sql, e->l, f, t);
+ r = exps_push_down(sql, e->r, f, t);
if (!l || !r) {
list_destroy(l);
list_destroy(r);
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list