Update of /cvsroot/monetdb/MonetDB5/src/optimizer
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3981

Modified Files:
        opt_joinpath.mx 
Log Message:
Revert the change to the optimizer.
The SQL code generator produces a sequence that is not by default
re-usable. We should introduce a post optimization step after determining
all joinpaths to detect common subpaths.


Index: opt_joinpath.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/optimizer/opt_joinpath.mx,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- opt_joinpath.mx     25 Jan 2008 12:00:38 -0000      1.16
+++ opt_joinpath.mx     25 Jan 2008 14:19:29 -0000      1.17
@@ -93,12 +93,12 @@
                p= getInstrPtr(mb,i);
                if( getModuleId(p)== algebraRef && getFunctionId(p)== joinRef ){
 @-
-Try to expand each of its argument list
+Try to expand each of its argument list.
 @c
                        q= copyInstruction(p);
                        q->argc=1;
                        for(j=p->retc; j<p->argc; j++)
-                       if( pc[getArg(p,j)] && used[getArg(p,j)]==1 ){
+                       if( pc[getArg(p,j)] ){
                                r= getInstrPtr(mb,pc[getArg(p,j)]);
 #ifdef DEBUG_OPT_JOINPATH 
                                stream_printf(GDKout,"expand with \n");
@@ -131,7 +131,11 @@
                                        getHeadType(getArgType(mb,q,j))== 
TYPE_oid)
                                 )
                                        goto nochange;
-
[EMAIL PROTECTED]
+Post-optimization. After the join path has been constructed
+it could locate common subpaths with previous ones and factor
+out that processing step. [TODO]
[EMAIL PROTECTED]
                                setFunctionId(q,joinPathRef);
                                getInstrPtr(mb,i)=q;
                                freeInstruction(p);


-------------------------------------------------------------------------
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-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to