Iterating through Cassandra wide row with CQL3

后端 未结 4 692
一生所求
一生所求 2020-12-28 09:52

How can I pull in a range of Composite columns with CQL3?

Consider the following:

CREATE TABLE Stuff (
    a int,
    b text,
    c text,
    d text,         


        
4条回答
  •  天命终不由人
    2020-12-28 10:21

    What you try to do is to get pagination stuff in Cassandra. CQL3 doesn't support this. You should create a column which is suitable for comparison, i.e. for less than, greater than operations and this column should form increasing/decreasing sequence. Indeed, as jorgebg noticed above, concatenation of b+c would fit this.

提交回复
热议问题