N+1 Query - CI/CD用語集の定義
N+1クエリ問題は、コードがコレクションに対して1つのクエリを発行し、その後、各アイテムごとに個別のクエリ(さらにN回)を発行するときに発生します。eager loadingやjoinを使えば、1回の往復にまとめられます。
関連ガイド
ORM - CI/CD Glossary DefinitionAn ORM maps database rows to in-memory objects so developers query in their host language. It speeds work but…
Index Scan - CI/CD Glossary DefinitionAn index scan reads rows by walking a database index instead of the whole table, jumping straight to matching…
Query Plan - CI/CD Glossary DefinitionA query plan is the step-by-step strategy a database picks to execute a SQL statement - which indexes, joins,…