Tim,

It is 3 to 4 times longer than retrieving data from a MySQL database.

Only 3 to 4 times longer than retrieving data from a MySQL?

You're lucky, it's often longer! :)

That was 3 to 4 times longer using the data from "d:DProf".

But it's 20 times longer using "Time::HiRes" to measure the time it takes to connect to the database. I guess I'm not so lucky after all.

 It takes 2.9342188835144 seconds to connect to the database.
 It takes 0.0100140571594238 seconds to retrieve the data and print it.

It takes almost 1 second longer using this connection string:
$dbh = DBI->connect("dbi:Oracle:host=$location;sid=$dbname", $user, $passwd);

I'd guess the difference is that the second is forcing a network connection
(even if host is localhost).

DBD::Oracle::dr::load_dbnames is only called by data_sources()
so don't call data_sources() unless you really need to.

I really do need to call data_sources() but the time it takes to retrieve data, as shown above, using "Time::HiRes" is only 0.0100140571594238 seconds. So that's not the issue.


--
Sincerely,

Paul Appleby

Reply via email to