0

My query:

cqlsh:mynap_db> select complete_row from tbl_rowsxml_map  where cache_type_name='IncomingCache' and user_id ='34014'  limit 1 ALLOW FILTERING;

 complete_row
--------------

(0 rows)

If it returns 0 rows then why does it take such a long time to execute?

Please help me to understand the reason.

Sven Schoenung
  • 30,224
  • 8
  • 65
  • 70
Sathya
  • 11
  • 1
  • 2

1 Answers1

4

ALLOW FILTERING is a reason. That means that your schema not allowing you to run this query effectively, so, you allowing Cassandra itself to select much more data from every node and filter data after. Usually is a quite non-effective operation.

Check Datastax' explanation for details or this answer.

Community
  • 1
  • 1
deniszh
  • 774
  • 1
  • 5
  • 14