N+1 Query - Definição do Glossário CI/CD
Um problema de N+1 query ocorre quando o código emite uma consulta para uma coleção e depois uma consulta separada para cada item (mais N). O eager loading ou um join o reduz a uma única viagem de ida e volta.
Guias relacionados
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,…