What you are giving is some very bad, unfounded advice.
What the bottleneck will be depends on several factors,
including which database is being used, and how large the
dataset will be. If you have a billion records fetched
over a slow link from dark Africa, your connection time
will be dwarved if you grab all the data. If you just have
five records and 5000 simultanious connections to your
database server running on a Sparc Classic,
setting up the connection will be the bottleneck.
But none of this is known. Any claims on
what will be the "best" or "fastest" solution without any
further disclaimers is misleading at best, and just shows
you not understanding databases.
My advice: implement several solutions and test. And make
sure you test on well choosen data sets. And for futher
advice, you are much better off at a database forum than at
a Perl forum, as this is a database problem - not a Perl one.
-- Abigail
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.