Skip to content

Commit

Permalink
Account indexes to address some performance issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Shpigford committed Oct 17, 2024
1 parent d4bfcfb commit 75a390f
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
7 changes: 7 additions & 0 deletions db/migrate/20241017204250_add_accounts_indexes.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class AddAccountsIndexes < ActiveRecord::Migration[7.2]
def change
add_index :accounts, [ :family_id, :accountable_type ]
add_index :accounts, [ :accountable_id, :accountable_type ]
add_index :accounts, [ :family_id, :id ]
end
end
34 changes: 32 additions & 2 deletions db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 75a390f

Please sign in to comment.