Operation Time Out Error in cqlsh console of cassandra

前端 未结 7 751
悲&欢浪女
悲&欢浪女 2020-12-10 12:44

I have a three nodes Cassandra Cluster and I have created one table which has more than 2,000,000 rows.

When I execute this (select count(*) from userdetails

7条回答
  •  眼角桃花
    2020-12-10 13:30

    having the same problem as you above if i do a count for a day, but as a work around, I split the count into two requests (12hours + 12hours), such as below.

    cqlsh:jw_schema1> select count(*) from flight_statistics where insert_time >= '2015-08-20 00:00:00' and insert_time <= '2015-08-20 11:59:59' ALLOW FILTERING;
    
     count
    -------
     42528
    
    (1 rows)
    cqlsh:jw_schema1> select count(*) from flight_statistics where insert_time >= '2015-08-20 12:00:00' and insert_time <= '2015-08-20 23:59:59' ALLOW FILTERING;
    
     count
    -------
     86580
    
    (1 rows)
    cqlsh:jw_schema1> 
    

提交回复
热议问题