0

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 の読み取りレイテンシーはdebian でNaN ms 呼び出すと、 ノードが 1 つしかなく、一貫性レベル ONE を使用しているhtopことが最大の負荷であることがわかります。phpcassaクエリが非常に遅くなる原因は何ですか?

4

1 に答える 1

5

C拡張機能がインストールされていないと思います。それがなければ、同様のクエリに 1 ~ 2 秒かかります。インストールすると、同じクエリに約 0.2 秒かかります。

NaN 読み取りレイテンシに関しては、get_range_slices (phpcassa の get_range) のレイテンシはキャプチャされません。

于 2011-11-25T20:07:29.253 に答える