1
box.space.test:create_index('secondary', {type='BITSET', unique=false, parts={2,'num', 3,'num'}})
---
- error: 'Can''t create or modify index ''secondary'' in space ''test'': BITSET index key can not be multipart

塔兰图尔 1.6.7-591-g7d4dbbb

我有结构表:

id,
param1: {1,50,70} #values[1-256]
param2: {6,8,128} #values[1-128]

并且需要:

SELECT * FROM table WHERE param1 HAVE {1,2} AND param2 HAVE {78}

所以我可以创建 256 位 + 128 位 BITSET 索引。我怎么能做到?

4

0 回答 0