Welcome Guest, Not a member yet? Register   Sign In
[Solved] Profiler only shows queries to one database
#2

[eluser]danmontgomery[/eluser]
The profiler should catch queries for all database objects that are assigned to the CI superobject... So, assuming you are doing something like:

Code:
$db1 = $this->load->database('db1', TRUE);
$db2 = $this->load->database('db2', TRUE);

In the controller, you should be able to just do:

Code:
$this->db1 = $this->load->database('db1', TRUE);
$this->db2 = $this->load->database('db2', TRUE);

There's been some discussion about this (http://ellislab.com/forums/viewthread/141499/) and I haven't tried it myself, but it should work.


Messages In This Thread
[Solved] Profiler only shows queries to one database - by El Forum - 06-29-2010, 08:56 AM
[Solved] Profiler only shows queries to one database - by El Forum - 06-29-2010, 09:16 AM
[Solved] Profiler only shows queries to one database - by El Forum - 06-29-2010, 10:12 AM
[Solved] Profiler only shows queries to one database - by El Forum - 06-29-2010, 10:37 AM
[Solved] Profiler only shows queries to one database - by El Forum - 06-29-2010, 11:05 AM
[Solved] Profiler only shows queries to one database - by El Forum - 06-29-2010, 11:14 AM
[Solved] Profiler only shows queries to one database - by El Forum - 10-12-2010, 10:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB