lazy loading
-
N+1 ProblemFramework/ORM 2020. 4. 10. 16:23
1. Overview N+1 problem is a performance issue in Object Relational Mapping that fires multiple select queries (N+1 to be exact, where N= number of records in a table) in a database for a single select query at the application layer. 2. Problem To understand N+1 problem, let's consider a scenario. Let’s say we have a collection of User objects mapped to t_users table in a database, and each user..