By default, a single JOIN statement will be generated and executed for all relations
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
Your Comment will be visible after approval. Post Free classified ads at www.pkbazaar.com to increase your traffic