Cassandra 1.1复合键/列和分层查询 [英] Cassandra 1.1 composite keys / columns and hierarchical queries

查看:143
本文介绍了Cassandra 1.1复合键/列和分层查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到目前为止,这是我理解的当前Cassandra架构:

So far, this is what I understand of the current Cassandra architecture:


  1. 超级列不再是由于性能问题

  2. 复合列(实际上是键)是用于对分层键进行索引的不错选择。

  3. 复合列以排序顺序存储嵌套组件。没有实际的索引。

我有一些问题:

    $
  1. 复合列可以有效地处理每个组件的范围查询(假设逻辑使用)吗?

  2. 复合列适合于极大量的行,同时仍然产生快速查询结果(考虑到它们不是索引本身)?

  3. 可以针对复合列创建辅助索引。如果是,可以有效执行范围查询?

  1. Is everything I stated correct?
  2. Can composite columns efficiently process range queries per component (assuming logical usage)?
  3. Are composite columns suited to extremely large numbers of rows while still yielding rapid query results (considering they are not an index per se)?
  4. Can secondary indexes be created against composite columns. If yes, can range queries be efficiently performed?

提前感谢。

推荐答案




  1. 与任何其他列一样写入

  2. 是的,可以针对复合材料创建次要版本1.2。查看此 JIRA ticket

  1. Yes
  2. Yes
  3. Yes, because they are sorted on write just like any other column
  4. Yes, secondaries can be created against composites as of 1.2. See this JIRA ticket

这篇关于Cassandra 1.1复合键/列和分层查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆