2009年11月26日星期四

Re: [fw-mvc] count query

sina miandashti wrote:
> hi
>
> i need a solution for counting total sql queries in a page ...
>
> plz help
>
> thanks
>
>
Hi,
Look at Zend_Db_Profiler :

|$profiler = $db->getProfiler();
||$queryCount = $profiler->getTotalNumQueries();

--
Thanks Yaroslav Vorozhko
Blog: http://pro100pro.com
LinkedIn: http://www.linkedin.com/in/vorozhko
|

没有评论: