Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8162267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:40:10+00:00 2026-06-06T18:40:10+00:00

can cassandra use multiple native secondary indexes when querying on mutiple indexed columns? using

  • 0

can cassandra use multiple native secondary indexes when querying on mutiple indexed columns?

using the canonical example from http://www.datastax.com/dev/blog/whats-new-cassandra-07-secondary-indexes

assuming a users column family with indexes both on birth date and state:

create column family users with comparator=UTF8Type
  and column_metadata=[{column_name: full_name, validation_class: UTF8Type},
  {column_name: birth_date, validation_class: LongType, index_type: KEYS},
  {column_name: state, validation_class: UTF8Type, index_type: KEYS}];

when I query:

get users where state = 'UT' and birth_date = 1970;

does cassandra uses both indexes to fetch the rows?

based on Compound Indexes in Apache Cassandra it seems the answer is no

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T18:40:12+00:00Added an answer on June 6, 2026 at 6:40 pm

    The link you give is correct; Cassandra will pick the most-selective index and use a nested loop to evaluate other predicates.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created a keyspace with the cassandra-cli tool, and i can use it. However
I'm going to write the web portal using Cassandra databases. Can you advise me
I want cassandra to make use of native methods. I installed jna as follows:
I would like to start using Cassandra with a node.js deployment, but I can't
Can I configure Cassandra dynamically without having to edit XML to create columns?
I intend to use PIG with cassandra for querying purpose. I have installed Pygmalion
The Cassandra command-line utility sstablekeys can be used to extract all defined row keys
In CassandraDB, using an ordered column family. I know you can get slices, but
Can I authenticate with just Google account username and password instead of using OAuth?
Can someone explain how MapReduce works with Cassandra .6? I've read through the word

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.