Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: (OT) perl, memory and mysql

by rnahi (Curate)
on Feb 10, 2006 at 16:30 UTC ( #529404=note: print w/replies, xml ) Need Help??


in reply to (OT) perl, memory and mysql

Of course you are running out of memory. Your query is generating five cartesian products!

If you don't set a join clause for each table, your query will be producing a huge number of rows. And this would slurp up all your available resources, no matter which DBMS you are using.

For example, if each table had 50 rows, then your query would generate 15,625,000,000 (fifteen billion rows).
With 100 rows per table, you'd get 1,000,000,000,000 rows (one thousand billion rows!). You get the idea.

Go get a SQL tutorial before continuing any further.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://529404]
help
Chatterbox?
[beech]: compare MANIFEST.SKIP
[stevieb]: cheers beech. twas totally my mistake, and I got bit. When things work for so long without issue, one becomes complacent (ie. replace we/one with I ;) I've been copy/pasting that around for a few years without a hiccup, so when...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2017-07-25 23:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (383 votes). Check out past polls.