The SQL code above will only execute 1 query as eager loading will load all the data in one combined large query, which is a large improvement and helps to solve the'N +1 problem' in lazy loading.
The SQL code above will only execute 1 query. Eager loading will load all the data in one combined large query'in lazy loading. One combined large query is a large improvement. One combined large query helps to solve the' N +1 problem.