Skip to content

Commit 7b61611

Browse files
committed
Remove #select() recommendation from space.len reference
This is dangerous as it may drive Lua out of memory. Alternatives suggested.
1 parent 8d69cb4 commit 7b61611

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/1.10/book/box/box_space.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,8 @@ Below is a list of all ``box.space`` functions and members.
842842
...
843843
844844
**Note re storage engine:** vinyl supports ``len()`` but the result may be approximate.
845-
If an exact result is necessary then use :ref:`count() <box_space-count>` or ``#select(...)``.
845+
If an exact result is necessary then use :ref:`count() <box_space-count>`
846+
or :ref:`pairs():length() <box_space-pairs>`.
846847

847848
.. _box_space-on_replace:
848849

0 commit comments

Comments
 (0)