Improve the query performance to find unverified projects

This forces the query to use the appropriated indexes instead of
sequential scans in project_repository_states table.
parent 95ac1154
......@@ -62,7 +62,7 @@ module Geo
end
def repository_never_verified
repository_state_table[:id].eq(nil)
repository_state_table[:project_id].eq(nil)
end
def last_repository_updated_at_asc
......
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