Commit 6e865b99 authored by Stan Hu's avatar Stan Hu

Merge branch 'ab-seed-tablesample' into 'master'

Seed tablesample strategy

Closes #58791

See merge request gitlab-org/gitlab-ce!25966
parents 27644f63 ded299c0
...@@ -61,6 +61,7 @@ module Gitlab ...@@ -61,6 +61,7 @@ module Gitlab
SELECT (COUNT(*)*#{inverse})::integer AS count SELECT (COUNT(*)*#{inverse})::integer AS count
FROM #{model.table_name} FROM #{model.table_name}
TABLESAMPLE SYSTEM (#{portion * 100}) TABLESAMPLE SYSTEM (#{portion * 100})
REPEATABLE (0)
#{where_clause(model)} #{where_clause(model)}
SQL SQL
......
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