关于使用cql查询Cassandra的一致性问题

时间:2015-05-12 06:58:04

标签: cassandra cql

我对cassandra做了完全相同的查询,但结果不同,我想知道为什么。细节如下:

    cqlsh:keyspace > select info_map from a where seq_id = '123456' limit 2;
    (0 rows)
    .....
    (after about 1 minute)
    .....
    cqlsh:keyspace > select info_map from a where seq_id = '123456' limit 2;
    {............data detail........}
    (1 rows)

我可以向您保证数据不是即时的(数据大约在1个月前插入到数据库中),并且命中重新编码的数量最多为1(尽管我在我的cql中写入限制2)。我的cassandra有两个数据中心。

0 个答案:

没有答案