File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/test/java/oracle/r2dbc/impl Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2302,7 +2302,8 @@ private void verifyConcurrentExecute(Connection connection) {
2302
2302
2303
2303
// Create many statements and execute them in parallel.
2304
2304
@ SuppressWarnings ({"unchecked" ,"rawtypes" })
2305
- Publisher <Integer >[] publishers = new Publisher [8 ];
2305
+ Publisher <Integer >[] publishers =
2306
+ new Publisher [Runtime .getRuntime ().availableProcessors () * 4 ];
2306
2307
2307
2308
for (int i = 0 ; i < publishers .length ; i ++) {
2308
2309
Flux <Integer > flux = Flux .from (connection .createStatement (
@@ -2334,7 +2335,8 @@ private void verifyConcurrentFetch(Connection connection) {
2334
2335
2335
2336
// Create many statements and execute them in parallel.
2336
2337
@ SuppressWarnings ({"unchecked" ,"rawtypes" })
2337
- Publisher <Long >[] publishers = new Publisher [8 ];
2338
+ Publisher <Long >[] publishers =
2339
+ new Publisher [Runtime .getRuntime ().availableProcessors () * 4 ];
2338
2340
2339
2341
for (int i = 0 ; i < publishers .length ; i ++) {
2340
2342
You can’t perform that action at this time.
0 commit comments