Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: easier to get data from a database

by kirbyk (Friar)
on Jul 12, 2005 at 16:47 UTC ( #474337=note: print w/ replies, xml ) Need Help??


in reply to easier to get data from a database

That's a neat shortcut.

The downside is that it's horribly inefficient. You're slurping in the whole table every time, rather than just what you need, and doing an extra query to get the contents of the table. Don't get too reliant on this shortcut, because it will not be acceptable in applications that have performance demands.

But for code where performance doesn't matter much, and you always read in the entire contents of a table (preferably only once!) it's a good trick.

-- Kirby, WhitePages.com


Comment on Re: easier to get data from a database

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://474337]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (15)
As of 2015-07-31 18:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (280 votes), past polls