【发布时间】:2019-07-28 01:07:32
【问题描述】:
您好,我在 python 中使用 cassandra。我在 cassandra 中有一个表,其中 line_id (uuid) 作为它的主键。我有大约 2000000 条记录(每个分区有一条记录)。当我想获取记录数时:
NumberPartitionedLine.objects.count()
我得到这个错误:
Error from server: code=1200 [Coordinator node timed out waiting for replica nodes' responses] message="Operation timed out - received only 0 responses." info={'consistency': 'LOCAL_ONE', 'received_responses': 0, 'required_responses': 1}
当我在 razorsql 或 datagrip 中运行查询 select count(*) from number_partitioned_line 时,
我收到超时错误并且无法获得结果。
什么原因?
【问题讨论】:
-
您需要增加分配给 Cassandra DB 服务器的内存。
标签: python cassandra cql cqlengine razorsql