Changeset: ccd4dcd1fef3 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/ccd4dcd1fef3
Modified Files:
gdk/gdk_batop.c
Branch: Jul2021
Log Message:
Use parent order index.
diffs (23 lines):
diff --git a/gdk/gdk_batop.c b/gdk/gdk_batop.c
--- a/gdk/gdk_batop.c
+++ b/gdk/gdk_batop.c
@@ -2328,8 +2328,7 @@ BATsort(BAT **sorted, BAT **order, BAT *
}
if (VIEWtparent(b)) {
pb = BBP_cache(VIEWtparent(b));
- if (/* DISABLES CODE */ (1) ||
- b->tbaseoff != pb->tbaseoff ||
+ if (b->tbaseoff != pb->tbaseoff ||
BATcount(b) != BATcount(pb) ||
b->hseqbase != pb->hseqbase ||
BATatoms[b->ttype].atomCmp != BATatoms[pb->ttype].atomCmp)
@@ -2349,6 +2348,9 @@ BATsort(BAT **sorted, BAT **order, BAT *
HEAPincref(oidxh);
}
mkorderidx = false;
+ } else if (b != pb) {
+ /* don't build orderidx on parent bat */
+ mkorderidx = false;
} else if (mkorderidx) {
/* keep lock when going to create */
orderidxlock = true;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list