Changeset: d317a5cc3b6d for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/d317a5cc3b6d
Modified Files:
sql/backends/monet5/bin_partition.h
sql/backends/monet5/rel_physical.c
Branch: default
Log Message:
for no need to inject select cnt > zero for partitioned hash builds.
use 128 parts
diffs (24 lines):
diff --git a/sql/backends/monet5/bin_partition.h
b/sql/backends/monet5/bin_partition.h
--- a/sql/backends/monet5/bin_partition.h
+++ b/sql/backends/monet5/bin_partition.h
@@ -13,6 +13,6 @@
#include "mal_backend.h"
-#define PARTITION_NRPARTS 256
+#define PARTITION_NRPARTS 128
#endif /*_BIN_PARTITION_H_*/
diff --git a/sql/backends/monet5/rel_physical.c
b/sql/backends/monet5/rel_physical.c
--- a/sql/backends/monet5/rel_physical.c
+++ b/sql/backends/monet5/rel_physical.c
@@ -1268,6 +1268,9 @@ rel_count_gt_zero(visitor *v, sql_rel *r
if (!gbe || list_empty(gbe) ||
is_rewrite_gt_zero_used(rel->used))
return rel;
+ bool safe = rel_groupby_partition_safe(rel);
+ if (safe && rel_groupby_partition(v->sql, rel))
+ return rel;
/* introduce select * from l where cnt > 0 */
/* find count */
if (list_empty(rel->exps)) /* no result expressions, just
project the groupby expressions */
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]