• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Number of Queries Executed

#1
[eluser]Sherz[/eluser]
Is there any way to display the number of queries that CodeIgniter has executed? I currently could add this to every time one is used but (as I use the activerecord class) is there an easier way?

#2
[eluser]JHackamack[/eluser]
If you're looking for debugging purposes then you can use the Profiler which will show you all the queries and how long it took to run each one.

#3
[eluser]Shay Falador[/eluser]
Yes.
$this->db->total_queries();

#4
[eluser]danmontgomery[/eluser]
http://ellislab.com/codeigniter/user-gui...iling.html


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.