How to run cassandra queries with non-primary key columns in where clause faster.? -


i taking performance benchmarks consider cassandra db solution our project. have created table 28 columns couple of columns primary key.

i loaded tables data around 250+ millions of records.

when hit queries primary key columns in clause, results satisfactory. when parallelized queries in 5 threads, complete close 1 million queries in 2.5 minutes.

however, when tried queries non-primary key columns in clause, 1000 queries took 2 hours.

i knew that, not having primary key big disadvantage, still might have kind of situation down line.

  1. i tried see if can use secondary indexes, seems restricted 1 column only.

  2. i not find right example custom indexes needs index type class.

  3. if used columns in primary key, helpful @ least 5%.?

  4. is cassandra solution if expect more query situations without primary key columns in clause?

i believe might have faced situation, great if 1 can share experience.

is cassandra solution if expect more query situations without primary key columns in clause?

this use case priori cassandra isn't best solution. if have 250+ millions records, other databases meet performance issues.

one solution build own indexes in other tables. if don't have different type of clause should trick. if have several update or select command update or select single row, each of these commands should fast bench did.


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -