once again you are asking a classically wrong question. From your own observation
-HOWEVER- whether using either way, BOTH fetchall-arrayref and bind_columns methods take about the same amount of time to display the results on the browser, again around 12-16 seconds.

So, why not use Benchmark and find out if one or the other is significantly faster? Either way, you are getting the same results. And, either way, you are likely to discover that getting the data from the db is probably just a fraction of a second or just a wee bit more. Most of the time is probably spent in assembling the html, sending it via the server, and the cable modem, up to you, and then rendering it on your computer. So, even if you manage to speed up a 200 microsecond job by 500% (the db work), you will still be stuck with 11-15 seconds of other grunt work.

My advice -- use Benchmark, adjust, and then quit worrying, or else, put a throttle on your max rows returned and page the results n at a time.

Good luck.


In reply to Re^2: bind_columns OR fetchall_arrayref by punkish
in thread bind_columns OR fetchall_arrayref by tanger

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.