on master help sign in
Document 'Limit and offset'
55fef87Ollie Charles
docs/concepts/queries.rst+7−2
@@ -108,9 +108,14 @@ with a ``TableSchema``.
108Limit and offset
108Limit and offset
109----------------
109----------------
110
110
111−.. todo::
111+The SQL ``LIMIT`` and ``OFFSET`` keywords are available in Rel8 as ``limit``
112+and ``offset``. Note that, like SQL, the order of these operations matters.
113+Usually, the correct thing to do is to first apply an offset with ``offset``,
114+and then use ``limit`` to limit the number of rows returned::
112
115
113− Write this
116+ limit n . offset m . orderBy anOrdering
117+
118+These operations are similar to Haskell's ``take`` and ``drop`` operations.
114
119
115Filtering queries
120Filtering queries
116-----------------
121-----------------