Commit bec1492c authored by Andreas Brandl's avatar Andreas Brandl

Merge branch...

Merge branch '10286-geo-sql-statement-times-out-whilst-determining-lfs-objects-to-sync' into 'master'

Geo - Improve query to determine LFS objects to sync when selective sync is enabled

See merge request gitlab-org/gitlab!19580
parents 0b2b4ca9 7554987c
......@@ -8,7 +8,7 @@ module Geo
belongs_to :lfs_object, class_name: 'Geo::Fdw::LfsObject', inverse_of: :projects
belongs_to :project, class_name: 'Geo::Fdw::Project', inverse_of: :lfs_objects
scope :project_id_in, ->(ids) { joins(:project).merge(Geo::Fdw::Project.id_in(ids)) }
scope :project_id_in, ->(ids) { where(project_id: ids) }
end
end
end
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