Updated at July 17, 2026 02:08 PM
space_object.index
space_object
A container for all defined indexes. There is a Lua object of type box.index with methods to search tuples and iterate over them in predefined order.
To reset, use box.stat.reset().
Return type
table
Example:
-- checking the number of indexes for space 'tester'tarantool> local counter=0; for i=0,#box.space.tester.index doif box.space.tester.index[i]~=nil then counter=counter+1 endend; print(counter)1---...-- checking the type of index 'primary'tarantool> box.space.tester.index.primary.type---- TREE...