How can I get last tuple in space? Last tuple here is tuple with max primary key value
local a = box.space.SPACE:len()
box.space.SPACE:get{a}
This variant is not suitable because the number of tuples is not equal to the number of created indexes