我有一个 cassandra 表,代表一个时间序列,带有这个主键
PRIMARY KEY ((type, id), scope, namespace_type, namespace_group,
name_attribute, event_time)
但查询运行速度太慢。
慢查询跟踪 3,020 毫秒
select * FROM entity_attribute_history WHERE type=? AND id=? AND scope=? AND
namespace_type=? AND namespace_group=? AND name_attribute=? AND event_time>=?
AND event_time<=?
我应该在模型中考虑什么?
编辑:
nodetool cfhistograms