Skip to content

Commit

Permalink
Fix slow OAI query
Browse files Browse the repository at this point in the history
  • Loading branch information
johnf committed Dec 2, 2024
1 parent ad2322a commit e23aac7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions db/migrate/20241202233312_add_private_index_to_collections.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class AddPrivateIndexToCollections < ActiveRecord::Migration[8.0]
def change
add_index :collections, :private, name: 'index_collections_on_private'

add_index :items, [:collection_id, :private, :updated_at]
end
end

0 comments on commit e23aac7

Please sign in to comment.