User Tools

Site Tools


Sidebar

indexes:select-multiple-ids

Q. What is the right way to select multiple ids from the index? (2017)

A. You could use this working version:

for i = 1, #tableWithIds do
    for _, tuple in box.space.{space-name}.index.{index-name}:pairs(tableWithIds[i], { iterator = box.index.EQ }) do
    ... process a tuple here ...
    end
end

Comments

Enter your comment. Wiki syntax is allowed:
B K J A G
 
indexes/select-multiple-ids.txt · Last modified: 2018/06/04 19:12 by eabates

Real Time Web Analytics