Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要获取 cassandra 数据库的列族的最大键以供进一步使用。如何使用 cassandra 查询语言或 hector API 获取它?
除非您使用有序分区器(这通常是一个坏主意),否则在列族中获取最大键非常昂贵。有关随机与有序分区器的更多详细信息,请参阅本文。
通常,您希望构建您的 cassandra 数据模型,以便您获取单个键,而不是获取一系列键。通常,您必须对数据进行非规范化才能这样做。