我刚刚在Zend中设置Fire
PHP,我注意到大量的DESCRIBE查询.一些页面在同一个表上都有50个或更多相同的查询.例如
0.00198 connect NULL
0.00449 DESCRIBE `nodes` NULL
0.00041 SELECT `nodes`.* FROM `nodes` WHERE (((`nodes`.`id` = 111))) NULL
0.0037 DESCRIBE `nodes` NULL
0.00155 SELECT `nodes`.* FROM `nodes` WHERE (((`nodes`.`id` = 111))) NULL
0.00059 SELECT `nodes`.* FROM `nodes` WHERE (parent_id = '111') ORDER BY `order` ASC, `id` ASC NULL
0.00366 DESCRIBE `nodes` NULL
0.0054 DESCRIBE `nodes` NULL
0.0049 DESCRIBE `nodes` NULL
0.00519 DESCRIBE `nodes` NULL
0.00492 DESCRIBE `nodes` NULL
0.00691 DESCRIBE `nodes` NULL
0.00741 DESCRIBE `nodes` NULL
0.0048 DESCRIBE `nodes` NULL
0.00556 DESCRIBE `nodes` NULL
0.00516 DESCRIBE `nodes` NULL
0.00487 DESCRIBE `nodes` NULL
…它继续下去
所有这些DESCRIBE查询是由框架生成的(我使用Zend_DbTable)吗?这些都是必要的吗?我应该担心吗,还是不太可能对表现产生影响?