File tree Expand file tree Collapse file tree
java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments