cassandra - 如何在 Cassandra 中启用物化 View ?

标签 cassandra

create materialized view if not exists s.emp
as
select id, count(name) as count from employee primary key (name);

查询 1 错误:实体化 View 被禁用。在 cassandra.yaml 中启用即可使用。

最佳答案

您需要将以下行添加到 cassandra.yaml 以启用物化 View :

materialized_views_enabled: true

您需要在集群的所有节点上启用它,然后执行滚动重启以使更改生效。

请注意,MV 被认为是实验性的,这就是默认情况下禁用它们的原因。正如我在本文中所讨论的那样,在将 MV 用于生产之前,请注意其优缺点 -- https://community.datastax.com/articles/2774/ .

有关物化 View 实验状态的更多信息,请参阅 NEWS.txt 中的条目在 Github 上。干杯!

关于cassandra - 如何在 Cassandra 中启用物化 View ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71216682/

相关文章:

Cassandra : optimal partition size

python - 在Python中使用多处理来改善Cassandra写入指令不起作用

database - Cassandra 2.0.6 : Higher number of results when adding AND to query

cassandra - 由于流式传输错误,无法添加新的 Cassandra 数据中心

Docker 容器重启不丢失数据

cassandra - 增加复制因子对cassandra性能的影响

postgresql - 阿卡持久性 : migrating from jdbc (postgres) to cassandra

Cassandra数据库问题

cassandra - 将 Datastax Enterprise Cassandra 迁移到 Apache Cassandra

启用远程 JMX 后,Cassandra "nodetool status"失败并显示 "Credentials required"