Closed this issue 6 years ago · 0 comments
comitrace/db/schema.rb
Line 71 in 9ead8ec
@ryokky59 外部キーになる xxx_id にはインデックスをつけるのが一般的です。 https://railsguides.jp/active_record_migrations.html#%E3%82%AB%E3%83%A9%E3%83%A0%E4%BF%AE%E9%A3%BE%E5%AD%90
https://www.postgresql.jp/document/10/html/indexes-examine.html