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


In reply to ADO (DBI) vs ADODB.Connection by ryddler

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.