Skip to content

Commit

Permalink
use virtual threads for query execution
Browse files Browse the repository at this point in the history
  • Loading branch information
vthacker committed Sep 24, 2023
1 parent bf9aaff commit 93ea3a2
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,7 @@ private static ListeningExecutorService queryThreadPool() {
return MoreExecutors.listeningDecorator(
Executors.newFixedThreadPool(
Math.max(1, Runtime.getRuntime().availableProcessors() - 2),
new ThreadFactoryBuilder()
.setNameFormat("chunk-manager-query-%d")
.setUncaughtExceptionHandler(
(t, e) -> LOG.error("Exception on thread {}: {}", t.getName(), e))
.build()));
Thread.ofVirtual().name("chunk-manager-query-", 0).factory()));
}

/*
Expand Down

0 comments on commit 93ea3a2

Please sign in to comment.