### Description

Tracking total hits sometimes has a non-negligible impact on performance. We should disable it when not strictly required.
x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/execution/search/Querier.java
public void onResponse(final SearchResponse response) {
            if (cfg.allowPartialSearchResults() && response.getFailedShards() > 0) {
                handleShardFailures(response);
            }
            handleResponse(response, delegate);
        }
        protected abstract void handleResponse(SearchResponse response, ActionListener<Page> listener);
        private static void handleShardFailures(SearchResponse response) {
            int count = 0;
            int shardFailuresCount = response.getShardFailures().length;
            for (ShardSearchFailure shardFailure : response.getShardFailures()) {
                HeaderWarning.addWarning(shardFailure.getCause().toString());
                if (++count >= MAX_WARNING_HEADERS - 1 && shardFailuresCount > count) {
                    int remaining = shardFailuresCount - count;
                    HeaderWarning.addWarning(remaining + " remaining shard failure" + (remaining > 1 ? "s" : "") + " suppressed");
                    break;
                }
            }
        }
    }
    @SuppressWarnings("rawtypes")
    static class AggSortingQueue extends PriorityQueue<Tuple<List<?>, Integer>> {
        private List<Tuple<Integer, Comparator>> sortingColumns;
        AggSortingQueue(int maxSize, List<Tuple<Integer, Comparator>> sortingColumns) {
            super(maxSize);
            this.sortingColumns = sortingColumns;
        }
        /**
         * Compare row based on the received attribute sort
         * <ul>