title: Django: Record with max element
body: <p>I have a database table named 'student' in which there is one column named 'marks'. I want the student record with highest marks in Maths. There is a simple solution to it using <code>order_by()[0]</code>:</p>
  
  <pre><code>Student.objects.filter(subject='Maths').order_by('-marks')[0]
  </code></pre>
  
  <p>But this sorts the table and then fetches me the first record. If my table is huge, this is redundant as I need only the max record. Is there any way to just get the largest value without sorting?</p>
  
  <p>I want the whole object, not just the max value.</p>
  
  <p>Thanks Anuj</p>