title: PHP/mysql - Queries vs arrays?
body: <p>I am writing a fairly simple webapp that pulls data from 3 tables in a mysql database. Because I don't need a ton of advanced filtering it seems theoretically faster to construct and then work within large multi-dimensional arrays instead of doing a mysql query whenever possible.</p>
  
  <p>In theory I could just have one query from each table and build large arrays with the results, essentially never needing to query that table again.  Is this a good practice, or is it better to just query for the data when it's needed? Or is there some kind of balance, and if so, what is it?</p>