当我使用 tarantool (memtx) 时一切正常,但是当我尝试在 sophia 上运行时 - 它不起作用;(
内存:
logs_space_id = 'logs'
logs = box.schema.create_space(logs_space_id)
logs:create_index('primary', {type = 'tree', parts = {1, 'STR', 3, 'STR'}})
为什么索菲亚不起作用?
logs_space_id = 'logs'
log_space = box.schema.space.create(logs_space_id,
{
engine = 'sophia',
if_not_exists = true
}
)
log_space:create_index('primary', {
parts = {1, 'STR', 3, 'STR'}
}
)