Commit bb808d0b authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre Committed by Michael Kozono

Geo - Improve query to retrieve Job Artifacts, LFS Objects, and Uploads with files stored locally

parent 41397c5b
......@@ -4,7 +4,7 @@ module ObjectStorable
extend ActiveSupport::Concern
included do
scope :with_files_stored_locally, -> { where(klass::STORE_COLUMN => [nil, ObjectStorage::Store::LOCAL]) }
scope :with_files_stored_locally, -> { where(klass::STORE_COLUMN => ObjectStorage::Store::LOCAL) }
scope :with_files_stored_remotely, -> { where(klass::STORE_COLUMN => ObjectStorage::Store::REMOTE) }
end
end
......@@ -11,8 +11,6 @@ module EE
STORE_COLUMN = :file_store
prepended do
include ObjectStorable
after_destroy :log_geo_deleted_event
scope :project_id_in, ->(ids) { joins(:projects).merge(::Project.id_in(ids)) }
......
---
title: Geo - Improve query to retrieve Job Artifacts, LFS Objects, and Uploads with
files stored locally
merge_request: 24891
author:
type: performance
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