involved in the eager loading. If the primary table has its LIMIT or OFFSET query
option set, it will be queried alone rst, followed by another SQL statement that
brings back all its related objects. Previsoulay in version 1.0.x, the default behavior
is that there will be N+1 SQL statements if an eager loading involves N HAS MANY or
MANY MANY relations.
No comments:
Post a Comment