Post

Conversation

SQLチューニングして、だいぶパフォーマンス改善した感じ ・N+1対策 ・適切な(複合)インデックス ・巨大テーブルへのWHERE INは、そもそものSQLの趣旨から別インデックスで絞り込んでから実行(例:添付画像)
Code snippet in a text editor with Ruby syntax. The code includes SQL queries, variable declarations, and method definitions. Red and green highlights mark specific lines of code.