Update of /cvsroot/monetdb/pathfinder/compiler/algebra/prop
In directory 
sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv22173/algebra/prop

Modified Files:
      Tag: Feb2010
        prop_set.c 
Log Message:
-- Performance fix in set property inference.


Index: prop_set.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/algebra/prop/prop_set.c,v
retrieving revision 1.36
retrieving revision 1.36.2.1
diff -u -d -r1.36 -r1.36.2.1
--- prop_set.c  7 Jan 2010 15:24:27 -0000       1.36
+++ prop_set.c  9 Mar 2010 17:19:18 -0000       1.36.2.1
@@ -421,6 +421,18 @@
             break;
 
         case la_difference:
+            /* Switch the set property from TRUE to MAYBE (TRUE+col)
+               if there is only a single column col and keep the MAYBE
+               information if it stores the same column name. */
+            if (n->prop->set && n->schema.count == 1) {
+                PFalg_col_t col = n->schema.items[0].name;
+                if ((n->prop->set_col && n->prop->set_col == col) ||
+                    !n->prop->set_col) {
+                    l_col = col;
+                    l_set = true;
+                    break;
+                }
+            }
             /* the left argument may not prune duplicates
                (as this might lead to more result tuples) */
             l_set = false;


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to