What is the N+1 query problem in Laravel Eloquent, and how is it solved?
-
A
Loading related models in a loop causes one query per record; solved with eager loading using with()
-
B
Running one query returns N+1 columns; solved with select()
-
C
Using N raw queries instead of Eloquent; solved by switching to ORM
-
D
Having more than N+1 database connections; solved by connection pooling