How do I select a limited number of records from tarantool, like with SELECT LIMIT in SQL?
问题 I want to perform a selection on a Tarantool space, using filtering and limiting the results, as I can do with a simple SQL query like " SELECT * FROM users WHERE age > 33 LIMIT 1 ". How can I achieve that? 回答1: It can be done using Lua as well as SQL. 1) Here is an example in Lua. Assume we have a space named "users" with fields "name", "surname", "age". First, let's create and populate the space: $ tarantool Tarantool 2.1.1-465-gbd1a43fbc type 'help' for interactive help tarantool> box.cfg(