title: How can I make a triple foreach faster?
body: <p>I have this <a href="http://pastebin.com/4NYvuaB0" rel="nofollow noreferrer">http://pastebin.com/4NYvuaB0</a> view with the following result:</p>
  
  <p><img src="https://i.stack.imgur.com/EvZ8t.png" alt="enter image description here"></p>
  
  <p>The first foreach iteracts with projects
  the second iterates over Hitos (One project has one or more Hitos)
  the third iterates over Tareas (One Hito has zero, one or more tareas)</p>
  
  <p>It's working ok, but it takes about 120 seconds to render the view, which is too much!</p>
  
  <p>Does someone have an idea of how to make it faster?</p>
  
  <p>Thanks in advance.</p>