Skip to content

Commit

Permalink
Refs #19 - complete readme
Browse files Browse the repository at this point in the history
  • Loading branch information
zebuline committed Jun 30, 2017
1 parent aaac082 commit 90013d5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,18 @@ You can also use ``values()``:
you'll have several small queries. This will save your RAM instead, because
you'll not load a huge queryset result before looping on it.

It is also possible to precise the field used for ordering:

.. code:: python
from chunkator import chunkator
for item in chunkator(LargeModel.objects.all(), 200, order_by_field='pk'):
do_something(item)
The field used for ordering **must** be defined as a Primary Key.


License
=======

MIT License.
MIT License.

0 comments on commit 90013d5

Please sign in to comment.