ryddler has asked for the wisdom of the Perl Monks concerning the following question:
I've been working on an ASP using an Access 2K DB, and have been suffering incredibly bad performance issues. Using the following snippet, I was able to determine that it was taking between 30 and 40 seconds just to connect to the DB, let alone perform any queries.
use DBI; $start = time; $dbh_metro = DBI->connect("dbi:ADO:metro"); $finish = time - $start; $Response->write("<CENTER><H2>took $finish seconds to connect DB</H2>< +/CENTER>\n");
Then, using this snippet, I was able to drop the connection to nearly 0 (zero) second connection times.
$start = time; $dbh_metro = $Server->CreateObject('ADODB.Connection'); $dbh_metro->Open("metro"); $finish = time - $start; $Response->write("<CENTER><H2>took $finish seconds to connect DB</H2>< +/CENTER>\n");
Has anyone else experienced any issues like this? Any idea why DBI would be so dog-slow? I was hoping to program the ASP with a Perl mindset and style, but if DBI is going to be so slow I'll be forced to use the M$ object syntax instead.
As an aside, does anyone have any good Perl based ASP links?
ryddler
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: ADO (DBI) vs ADODB.Connection
by repson (Chaplain) on Jan 10, 2001 at 08:36 UTC | |
by ryddler (Monk) on Jan 10, 2001 at 21:04 UTC | |
by $code or die (Deacon) on Jan 10, 2001 at 23:35 UTC | |
Re: ADO (DBI) vs ADODB.Connection
by wardk (Deacon) on Jan 10, 2001 at 05:39 UTC | |
by ryddler (Monk) on Jan 10, 2001 at 06:08 UTC | |
by wardk (Deacon) on Jan 10, 2001 at 19:28 UTC | |
by BigJoe (Curate) on Jan 10, 2001 at 20:39 UTC |