in reply to Re^4: Help with MySQL SELECT into multidimensional array
in thread Help with MySQL SELECT into multidimensional array
I am no SQL guru, but SQL has several types of table joins where 2 or more tables can be combined into a single "view" which is like a temporary table with the columns of both tables, but read only. On all tricky SQL questions, I defer to wiser Monks than myself.
However, if you can do the SQL, it can make the Perl code easier because you could just get all the results at once.
There is sometimes a tradeoff between Perl voodoo and SQL voodoo. I had one SQL query that I worked on very hard and it worked, but it took 15 minutes. Then I "simplified it" into 1,500 SQL queries and it took only 15 seconds. But I used some serious "Perl-kung-foo" on it!
From what I understand so far, your app is not performance or memory limited. Find some combination of stuff that works for you! Any of the SQL or Perl code that we've discussed so far will be just fine.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Help with MySQL SELECT into multidimensional array
by btongeorge (Initiate) on Dec 05, 2011 at 18:09 UTC | |
by Marshall (Canon) on Dec 06, 2011 at 10:50 UTC |