title: Quickly finding the last item in a database Cakephp
body: <p>I just inherited some cakePHP code and I am not very familiar with it (or any other php/serverside language).  I need to set the id of the item I am adding to the database to be the value of the last item plus one, originally I did a call like this:</p>
  
  <pre><code>$id = $this-&gt;Project-&gt;find('count') + 1;
  </code></pre>
  
  <p>but this seems to add about 8 seconds to my page loading (which seems weird because the database only has about 400 items) but that is another problem.  For now I need a faster way to find the id of the last item in the database, is there a way using find to quickly retrieve the last item in a given table?</p>