Changeset: 94f287a5c848 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/94f287a5c848
Modified Files:
        gdk/gdk_select.c
Branch: Sep2022
Log Message:

Don't create hash in select on parent bat if too many duplicate values.


diffs (12 lines):

diff --git a/gdk/gdk_select.c b/gdk/gdk_select.c
--- a/gdk/gdk_select.c
+++ b/gdk/gdk_select.c
@@ -1668,6 +1668,8 @@ BATselect(BAT *b, BAT *s, const void *tl
                     wantphash ||
                     (pb->batRole == PERSISTENT && GDKinmemory(0))) &&
                    pbi.count == bi.count &&
+                   (pbi.unique_est == 0 ||
+                    pbi.unique_est >= pbi.count / no_hash_select_fraction) &&
                    BAThash(pb) == GDK_SUCCEED) {
                        MT_rwlock_rdlock(&pb->thashlock);
                        if (pb->thash)
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to