Fix parallelization

This commit is contained in:
Andrea Cavalli 2024-09-16 13:31:41 +02:00
parent 86a984c1d6
commit cc998f1de4

View File

@ -34,7 +34,7 @@ public class EmbeddedConnection extends BaseConnection implements RocksDBAPI {
public EmbeddedConnection(@Nullable Path path, String name, @Nullable Path embeddedConfig) throws IOException {
super(name);
this.db = new EmbeddedDB(path, name, embeddedConfig);
this.exeuctor = Executors.newVirtualThreadPerTaskExecutor();
this.exeuctor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());
}
@Override