Skip to content

Commit 7776951

Browse files
committed
edit comments
1 parent fb2d51d commit 7776951

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryConnection.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,11 +349,11 @@ public class BigQueryConnection extends BigQueryNoOpsConnection {
349349

350350
this.headerProvider = createHeaderProvider();
351351
this.bigQuery = getBigQueryConnection();
352-
// Fixed thread pool limits concurrent calls to prevent BigQuery metadata API throttling
353-
// (independent tasks).
352+
// Fixed thread pool queues tasks to limit concurrent metadata calls and prevent API
353+
// throttling.
354354
this.metadataExecutor = BigQueryJdbcMdc.newFixedThreadPool(metadataFetchThreadCount);
355-
// Cached thread pool prevents deadlocks between interdependent producer/consumer query
356-
// execution tasks.
355+
// Cached pool executes queries immediately without queueing and reclaims all idle threads
356+
// when inactive, minimizing resources.
357357
this.queryExecutor = BigQueryJdbcMdc.newBoundedCachedThreadPool(queryProcessThreadCount);
358358
}
359359
}

0 commit comments

Comments
 (0)