lef237 / quotelist

引用箱 クオートリスト QuoteList
MIT License
6 stars 0 forks source link

with_attached_avatarを使ってN+1問題を解消した #55

Closed lef237 closed 1 year ago

lef237 commented 1 year ago

ActiveStorage::Attached::Model

To avoid N+1 queries, you can include the attached blobs in your query like so: