title: Which is more expensive? For loop or database call?
body: <p>In general, which is more expensive?  A double-nested for loop and one call to a database or a call to a database for each of N items in only one for loop?</p>
  
  <p>Not looking for an answer down to microseconds, just a general idea of which direction I should take.</p>
  
  <p>TIA.</p>