Skip to content
Snippets Groups Projects
Verified Commit 8953a267 authored by Alper Akgun's avatar Alper Akgun 3️⃣
Browse files

Optimize stats threshold for approximate counters

parent 0f48828f
No related branches found
No related tags found
2 merge requests!32098test merge conflicts for Release Tools,!31137Optimize stats threshold for approximate counters
......@@ -72,7 +72,7 @@ def size_estimates(check_statistics: true)
# @param [Array] table names
# @returns [Hash] Table name to count mapping (e.g. { 'projects' => 5, 'users' => 100 })
def get_statistics(table_names, check_statistics: true)
time = 1.hour.ago
time = 6.hours.ago
query = PgClass.joins("LEFT JOIN pg_stat_user_tables USING (relname)")
.where(relname: table_names)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment