Changeset: b2d63996d87e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/b2d63996d87e
Modified Files:
monetdb5/optimizer/opt_mitosis.c
Branch: Sep2022
Log Message:
allow for more concurrent clients
diffs (21 lines):
diff --git a/monetdb5/optimizer/opt_mitosis.c b/monetdb5/optimizer/opt_mitosis.c
--- a/monetdb5/optimizer/opt_mitosis.c
+++ b/monetdb5/optimizer/opt_mitosis.c
@@ -173,7 +173,7 @@ OPTmitosisImplementation(Client cntxt, M
else {
memclaim= MCmemoryClaim();
if(memclaim == GDK_mem_maxsize){
- m = GDK_mem_maxsize / (size_t)
MCactiveClients() / argsize;
+ m = GDK_mem_maxsize / (size_t) MAL_MAXCLIENTS
/ argsize;
} else
m = (GDK_mem_maxsize - memclaim) / argsize;
}
@@ -191,7 +191,7 @@ OPTmitosisImplementation(Client cntxt, M
/* the number of pieces affects SF-100, going beyond 8x
increases
* the optimizer costs beyond the execution time
*/
- pieces = ((int) ceil((double)rowcnt / m / threads));
+ pieces = ((int) ceil((double)rowcnt / (m / threads)));
if (pieces <= threads)
pieces = threads;
} else if (rowcnt > MINPARTCNT) {
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]