Tarantool多部分bitset索引

时间:2017-04-28 10:57:17

标签: indexing bitset tarantool

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

Tarantool 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索引。我怎么能成功呢?

0 个答案:

没有答案