gpt4 book ai didi

cassandra - Cassandra 是面向列的数据库还是列式数据库

转载 作者:行者123 更新时间:2023-12-02 06:28:47 30 4
gpt4 key购买 nike

列式数据库应该将一组列存储在一起。但 Cassandra 按行存储数据。SS 表将保存映射到其相应分区键的多行数据。所以我觉得 Cassandra 是像 MySQL 一样的行式数据存储,但还有其他好处,比如“宽行”,并且每列不一定都存在于所有行中,当然它在内存中。如果我错了,请纠正我。

最佳答案

如果您转到Apache Cassandra project on GitHub ,然后向下滚动到“执行摘要”,您将得到答案:

Cassandra is a partitioned row store. Rows are organized into tables with a required primary key.

Partitioning means that Cassandra can distribute your data across multiple machines in an application-transparent matter. Cassandra will automatically repartition as machines are added and removed from the cluster.

Row store means that like relational databases, Cassandra organizes data by rows and columns.

“所以我觉得 Cassandra 是一个行式数据存储”

这是正确的。

关于cassandra - Cassandra 是面向列的数据库还是列式数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25441921/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com