title: How to get the latest row in a table using Entity Framework (considering performance)?
body: <p>I am concerning about performance, specially on large table.
  In my example StatusId is a <code>IDENTIY PRIMARY KEY</code>.</p>
  
  <p>I would like to know if there is a better way (faster) to get the last entry in a table.</p>
  
  <pre><code>  public IQueryable&lt;GaStatus&gt; GetLastStatus()
      {
          return context.GaStatuses.OrderByDescending(x =&gt; x.StatusId).Take(1);
      }
  </code></pre>