![]() |
Number of Queries Executed - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Number of Queries Executed (/showthread.php?tid=27149) |
Number of Queries Executed - El Forum - 02-02-2010 [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? Number of Queries Executed - El Forum - 02-02-2010 [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. Number of Queries Executed - El Forum - 02-02-2010 [eluser]Shay Falador[/eluser] Yes. $this->db->total_queries(); Number of Queries Executed - El Forum - 02-02-2010 [eluser]danmontgomery[/eluser] http://ellislab.com/codeigniter/user-guide/general/profiling.html |