Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 examining the Monastery: (9)
As of 2014-09-19 09:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (134 votes), past polls