I am reading A deep look at the CQL WHERE clause. I am confused by several statements, so I posted 5 questions (Q1 - Q5). Any comments welcomed. Thanks
Q1: What does
Secondary index queries
mean? What doesthe query is using a secondary index
mean?I think
secondary index queries
==the query which is using a secondary index
.But
Secondary index queries
means queries on the table where secondary index exists OR the queried columns are all indexed OR at least one column among all queried columns is indexed?
Single column slice restrictions are allowed only on the last clustering column being restricted.
Q2: Single column slice restrictions mean
>, >=, <=, <
?
Direct queries on secondary indices support only =, CONTAINS or CONTAINS KEY restrictions.
Q3: The indexed columns can be restricted only by =, CONTAINS, and CONTAINS KEY?
CONTAINS and CONTAINS KEY restrictions can only be used on collections when the query is using a secondary index.
Q4:
CONTAINS
can be used on any non-indexed clustering column? Buy when one column is secondary indexed,CONTAINS
can only be used on this column when this column iscollections
type?
Regular columns can be restricted by =, >, >=, <= and <, CONTAINS or CONTAINS KEY restrictions if the query is a secondary index query. IN restrictions are not supported.
Q5: What does
Regular columns
mean? AlwaysSingle column slice restrictions are allowed only on the last clustering column being restricted.
. If one column is secondary indexed,=, >, >=, <= and <, CONTAINS or CONTAINS KEY restrictions (but not IN)
can be restricted on this column, even if it is not last clustering column?