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