Commit 9c059a02 authored by Andreas Brandl's avatar Andreas Brandl

Lower the tablesample thresholds/targets.

The numbers in
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/22650#note_117645395
are quite promising with that target.
parent 9c6449ec
...@@ -14,8 +14,8 @@ module Gitlab ...@@ -14,8 +14,8 @@ module Gitlab
# #
# There are no guarantees with respect to the accuracy of the result or runtime. # There are no guarantees with respect to the accuracy of the result or runtime.
class TablesampleCountStrategy < ReltuplesCountStrategy class TablesampleCountStrategy < ReltuplesCountStrategy
EXACT_COUNT_THRESHOLD = 100_000 EXACT_COUNT_THRESHOLD = 10_000
TABLESAMPLE_ROW_TARGET = 100_000 TABLESAMPLE_ROW_TARGET = 10_000
def count def count
estimates = size_estimates(check_statistics: false) estimates = size_estimates(check_statistics: false)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment