Fix parallelization
This commit is contained in:
parent
86a984c1d6
commit
cc998f1de4
@ -34,7 +34,7 @@ public class EmbeddedConnection extends BaseConnection implements RocksDBAPI {
|
|||||||
public EmbeddedConnection(@Nullable Path path, String name, @Nullable Path embeddedConfig) throws IOException {
|
public EmbeddedConnection(@Nullable Path path, String name, @Nullable Path embeddedConfig) throws IOException {
|
||||||
super(name);
|
super(name);
|
||||||
this.db = new EmbeddedDB(path, name, embeddedConfig);
|
this.db = new EmbeddedDB(path, name, embeddedConfig);
|
||||||
this.exeuctor = Executors.newVirtualThreadPerTaskExecutor();
|
this.exeuctor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user