Why each request with activerecord is doing SHOW TABLE?

Posted by dynback.com on Stack Overflow See other posts from Stack Overflow or by dynback.com
Published on 2010-04-15T17:59:47Z Indexed on 2010/04/15 18:03 UTC
Read the original article Hit count: 146

Filed under:
|

My test page is processed if believe to trace in 46 ms, while 11 of them I am doing this

 20:53:06.111597 system.db.CDbConnection   Opening DB connection
 20:53:06.118046 system.db.CDbCommand      Querying SQL: SHOW COLUMNS FROM `questions`
 20:53:06.122476 system.db.CDbCommand      Querying SQL: SHOW CREATE TABLE `questions`

Is this obligatory?

© Stack Overflow or respective owner

Related posts about yii

Related posts about activerecord