0
排序的集群密钥
在卡桑德拉,如果我有下表来存储学生的分数。分区键是class_uuid,分数是集群键。把潜在的热点问题放在一边,广泛的行是将所有的学生存储在班级按照分数DESC排序。按照
CREATE TABLE class_students(
class_uuid uuid,
score double,
student_uuid uuid,
PRIMARY KEY (class_uuid,score,student_uuid)
)
WITH CLUSTERING ORDER BY (score DESC);
;
我的问题是什么时候有两个同分的学生,cassandra如何排序并保存它们?