相关疑难解决方法(0)

卡桑德拉:柱族与超级柱族

我有一个要求,我需要我的数据库来存储以下数据:

- For each build, store the results of 3 performance runs. The result includes tps and latency. 
Run Code Online (Sandbox Code Playgroud)

阅读cassandra数据模型,这直接映射到以下格式的超级列族:

BenchmarkSuperColumnFamily= {

build_1: {
   Run1: {1000K, 0.5ms}
   Run2: {1000K, 0.5ms}
   Run3: {1000K, 0.5ms}
}

build_2: {
   Run1: {1000K, 0.5ms}
   Run2: {1000K, 0.5ms}
   Run3: {1000K, 0.5ms}
}
...

}
Run Code Online (Sandbox Code Playgroud)

但是,我在下面的回答中读到,不鼓励使用Super Column系列.我想知道是否有更好的方法为我的要求创建模型.

PS,我从下面的文章中借用了JSONish表示法

database-design cassandra nosql

4
推荐指数
1
解决办法
2721
查看次数

标签 统计

cassandra ×1

database-design ×1

nosql ×1