Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

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,

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2016-10-23 10:16 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (301 votes). Check out past polls.