title: Laravel Eloquent performance issue
body: <p>when I use Eloquent to get data, and found out some performance issue</p>
  
  <p>In my case, I use laravel debugbar ( <a href="https://github.com/barryvdh/laravel-debugbar" rel="nofollow">https://github.com/barryvdh/laravel-debugbar</a> ) to collect the information I need.</p>
  
  <p>when I use ORM to get about 20 entries from my DB</p>
  
  <pre><code>$projects = Project::where('status', '=', 2)-&gt;get();
  </code></pre>
  
  <p>it took about 24MB memory usage and 250ms</p>
  
  <p>but when I use the query builder as below </p>
  
  <pre><code>$projects = DB::table('Project')-&gt;where('status','=',2)-&gt;get();
  </code></pre>
  
  <p>the database queries and the return data are almost the same, but query builder took only 11MB memory usage and 113ms to get the data.</p>
  
  <p>when the entries I need are about 200 entries, and even relate to other tables via ORM, it take almost 8000ms... and get the "Allowed memory size exhausted" error message very often..</p>
  
  <p>So, I was wondering, in my condition, should I use the query builder and join other table?</p>
  
  <p>Or what should I do to speed up the Eloquent performance ?</p>