Re: How do I, from a controller, count the number of queries made?

2008-09-04 Thread Aaron Shafovaloff

Any ideas?

On Sep 3, 2:18 pm, Aaron  Shafovaloff [EMAIL PROTECTED] wrote:
 How do I, from a controller, count the number of queries made? I would
 like to log the count of queries without using the table that debug=2
 prints out.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: How do I, from a controller, count the number of queries made?

2008-09-04 Thread majna

From controller:

Configure::write('debug', 2);
$db = ConnectionManager::getDataSource('default');
$queryCount = $db-_queriesCnt;
Configure::write('debug', 1);

(dirty...)


On Sep 4, 10:05 am, Aaron  Shafovaloff [EMAIL PROTECTED] wrote:
 Any ideas?

 On Sep 3, 2:18 pm, Aaron  Shafovaloff [EMAIL PROTECTED] wrote:

  How do I, from a controller, count the number of queries made? I would
  like to log the count of queries without using the table that debug=2
  prints out.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



How do I, from a controller, count the number of queries made?

2008-09-03 Thread Aaron Shafovaloff

How do I, from a controller, count the number of queries made? I would
like to log the count of queries without using the table that debug=2
prints out.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---