I am implementing a feature which requires looking up Cassandra by a list of primary keys.
Below is an example data where id is primary key
mytable
id
If the id
is the full primary key, then Cassandra supports this, although it's not recommended from performance point of view:
id
, and send individual request to themAs result:
If you do a lot of parallel, asynchronous requests for each of the id
values from application, then you:
So sending parallel asynchronous requests could be faster than sending one request with IN
...