cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tupshin Harper (JIRA)" <>
Subject [jira] [Updated] (CASSANDRA-7026) CQL:WHERE ... IN with full partition keys
Date Wed, 16 Jul 2014 18:24:06 GMT


Tupshin Harper updated CASSANDRA-7026:

    Fix Version/s:     (was: 3.0)

> CQL:WHERE ... IN with full partition keys
> -----------------------------------------
>                 Key: CASSANDRA-7026
>                 URL:
>             Project: Cassandra
>          Issue Type: Wish
>          Components: Core
>            Reporter: Dan Hunt
>            Priority: Minor
>              Labels: cql
> It would be handy to be able to pass in a list of fully qualified composite partition
keys in an IN filter to retrieve multiple distinct rows with a single select.  Not entirely
sure how that would work.  It looks like maybe it could be done with the existing token()
function, like:
> SELECT * FROM table WHERE token(keyPartA, keyPartB) IN (token(1, 1), token(4, 2))
> Though, I guess you'd also want some way to pass a list of tokens to a prepared statement
through the driver.  This of course all assumes that an IN filter could be faster than a bunch
of prepared statements, which might not be true.

This message was sent by Atlassian JIRA

View raw message