Update of /cvsroot/monetdb/pathfinder/compiler/algebra
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv14998/algebra
Modified Files:
Tag: XQuery_0-24
physical.c
Log Message:
-- doc_tbl is trivially sorted for inputs of cardinality 1.
(This change avoids the planning of a physical sort operator.)
U physical.c
Index: physical.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/algebra/physical.c,v
retrieving revision 1.69.2.1
retrieving revision 1.69.2.2
diff -u -d -r1.69.2.1 -r1.69.2.2
--- physical.c 28 May 2008 11:08:12 -0000 1.69.2.1
+++ physical.c 30 May 2008 14:13:46 -0000 1.69.2.2
@@ -2604,6 +2604,10 @@
for (unsigned int i = 0; i < PFord_set_count (n->orderings); i++)
PFord_set_add (ret->orderings, PFord_set_at (n->orderings, i));
+ /* for single base tables the result is trivially sorted */
+ if (PFprop_card (n->prop) == 1)
+ PFord_set_add (ret->orderings, sortby (res));
+
/* ---- doc_tbl: costs ---- */
ret->cost = DEFAULT_COST + n->cost;
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins