Skip to content
Snippets Groups Projects
Commit 6e865b99 authored by Stan Hu's avatar Stan Hu
Browse files

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

Seed tablesample strategy

Closes #58791

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