Changeset: 0a23c790957d for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0a23c790957d
Modified Files:
        sql/backends/monet5/sql_optimizer.c
Branch: jit
Log Message:

use size of table when index is empty.


diffs (22 lines):

diff --git a/sql/backends/monet5/sql_optimizer.c 
b/sql/backends/monet5/sql_optimizer.c
--- a/sql/backends/monet5/sql_optimizer.c
+++ b/sql/backends/monet5/sql_optimizer.c
@@ -108,12 +108,15 @@ SQLgetSpace(mvc *m, MalBlkPtr mb, int pr
                                        b = store_funcs.bind_idx(tr, i, RDONLY);
                                        if (b) {
                                                space += (size =getBatSpace(b));
-/*
+                                               if (!size) {
+                                                       sql_column *c = 
i->t->columns.set->h->data;
+                                                       size = 
SQLgetColumnSize(tr, c);
+                                               }
+
                                                if( !prepare && size == 0){
                                                        setFunctionId(p, 
emptycolumnidxRef);
-                                                       
mnstr_printf(GDKout,"found empty column %s.%s.%s prepare %d size 
"LLFMT"\n",sname,tname,idxname,prepare,size);
+                                                       
//mnstr_printf(GDKout,"found empty column %s.%s.%s prepare %d size 
"LLFMT"\n",sname,tname,idxname,prepare,size);
                                                }
-*/
                                                BBPunfix(b->batCacheid);
                                        }
                                }
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to