Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ExecutorService for metric retrieval
This service will add parallelism to the retrieval of metrics from the index metrics table, decreasing the overall planning time. A new property, index_short_circuit_cardinality_fetch, is used to enable a new feature which causes the metrics retrieval to return early if one of the cardinalities retrieved is less than a given threshold. The remaining tasks will complete as planned, caching the results in the Guava cache, but the connector can use the smallest cardinality column in the meantime. We also add a polling duration because some cached results are returned a few milliseconds before a significantly lower result. By adding a sleep prior to polling the tasks, we are adding 'waves' of result retrieval. The results of any completed tasks are taken and the smallest cardinality, if below the threshold, is used while the other tasks complete.
- Loading branch information
1 parent
792e2d4
commit 5cd5fb6
Showing
8 changed files
with
385 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.