Chitika

Sunday, March 18, 2012

Changes Related with Eager Loading for Relational Active Record Yii Framework


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

Clicksor

Related Results

Related Posts Plugin for WordPress, Blogger...

Comment Here