我有 1280 行的 CF。每行有 6 列。我试图 $cf->get_range('pq_questions','','',1200) 并且它获取所有行但太慢(大约 4-6 秒)
Column Family: pq_questions
SSTable count: 1
Space used (live): 668363
Space used (total): 668363
Number of Keys (estimate): 1280
Memtable Columns Count: 0
Memtable Data Size: 0
Memtable Switch Count: 0
Read Count: 0
Read Latency: NaN ms.
Write Count: 0
Write Latency: NaN ms.
Pending Tasks: 0
Key cache capacity: 200000
Key cache size: 1000
Key cache hit rate: 0.10998439937597504
Row cache capacity: 1000
Row cache size: 1000
Row cache hit rate: 0.0
Compacted row minimum size: 373
Compacted row maximum size: 1331
Compacted row mean size: 574
这很奇怪,但是 cfstats 中的读取延迟是NaN ms
当我调用htop
debian 时,我看到负载最多的原因是phpcassa
我只有一个节点并使用一致性级别 ONE。是什么导致查询如此缓慢?