title: Is Cassandra secondary index optimized if the partition key specified?
body: <p>For secondary index queries that the partition key is specified in the WHERE clause, does the secondary index lookup hits all cluster nodes, or just the node of the specified partition key?<br>
  If the latter is correct, then secondary index will be a good fit also for high cardinality fields (only for queries that satisfies the partition key).</p>
  
  <p>EDIT: For example, for the following feed schema, query of a specific feed (feed_id specified) to retrieve existing or deleted feed items should be very efficient:</p>
  
  <pre><code>CREATE TABLE my_feed (
     feed_id int,
     item_id timeuuid,
     is_deleted boolean,
     data text,
     PRIMARY KEY (feed_id, item_id)
  ) WITH CLUSTERING ORDER BY (item_id DESC);
  
  CREATE INDEX my_feed_is_deleted_idx ON my_feed (is_deleted);
  
  ==&gt; SELECT * FROM my_feed WHERE feed_id=1 AND is_deleted=false; --efficient?
  </code></pre>