Skip to content

Commit 2aa5207

Browse files
committed
feat: revert parallelism set for pg
1 parent 949c26e commit 2aa5207

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arc-core/src/main/java/fr/insee/arc/core/service/p5mapping/dao/MappingQueriesForLargeFile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public StringBuilder kickParallelModeForLargeTable() {
1717
StringBuilder returned = new StringBuilder();
1818
if (largeFile)
1919
{
20-
returned.append("SET local max_parallel_workers_per_gather=").append(NUMBER_OF_WORKER).append("; SET local enable_sort=off; SET local debug_parallel_query=on;");
20+
returned.append("SET local max_parallel_workers_per_gather=").append(NUMBER_OF_WORKER).append("; SET local enable_sort=off; SET local parallel_setup_cost = 0; SET local parallel_tuple_cost = 0; SET local cpu_tuple_cost=0.025; SET local min_parallel_table_scan_size = 0;");
2121
}
2222
return returned;
2323
}

0 commit comments

Comments
 (0)