cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Lebresne <>
Subject Re: Combine multiple SELECT statements into one RPC?
Date Thu, 27 Feb 2014 09:05:21 GMT
On Thu, Feb 27, 2014 at 1:00 AM, Clint Kelly <> wrote:

> Hi all,
> Is there any way to use the DataStax Java driver to combine multiple
> SELECT statements into a single RPC?  I assume not (I could not find
> anything about this in the documentation), but I just wanted to check.

The short answer is no.

The slightly longer answer is that the DataStax Java driver uses the
so-called native protocol. And that protocol does not allow to have
multiple SELECT into a single protocol message (the protocol is not really
RPC-based strictly speaking so I'll assume you meant one client->server
message here), and it follows that the driver can't either. But I'll note
that the reason why the protocol doesn't have such a thing is that it's
generally a better idea to parallelize your SELECT client side, though
since you haven't provided much context for you question I'd rather not go
into too much details here since that might be off-topic.


View raw message