#16698: Docs: QuerySet slicing (SQL LIMIT)
----------------------------------+-------------------------------
 Reporter:  guettli               |          Owner:  nobody
     Type:  Cleanup/optimization  |         Status:  new
Milestone:                        |      Component:  Documentation
  Version:  1.3                   |       Severity:  Normal
 Keywords:                        |   Triage Stage:  Unreviewed
Has patch:  0                     |  Easy pickings:  0
    UI/UX:  0                     |
----------------------------------+-------------------------------
 The current documentation for QuerySet slicing (SQL LIMIT) should be
 improved:

 https://docs.djangoproject.com/en/dev/topics/db/queries/#limiting-
 querysets


 {{{
 current:
 For example, this returns the first 5 objects (LIMIT 5):
 >>> Entry.objects.all()[:5]
 }}}

 {{{
 add:
 No Exception will be raised, if there are fewer results.
 If there are only four entries in the database table, the result will
 contain four entries.
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16698>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to