【发布时间】:2018-08-02 05:51:59
【问题描述】:
我有一张如下表,
CREATE TABLE log (
"date" text,
"timestamp" timestamp, "message" text,"module" text,"userId" text,
primary key ("date","timestamp")) with clustering order by ("timestamp" DESC);
我在“消息”列上创建了 SASI 索引,其中包含更多字符,我们可以预期每个日志消息列中大约有 250 个字符。对具有更多字符数的列进行索引会影响性能吗?
select * from log where date = '20180223' AND message LIKE '%test%'
【问题讨论】:
标签: indexing cassandra cassandra-3.0