On Thu, Feb 27, 2014 at 1:00 AM, Clint Kelly <clint.ke...@gmail.com> 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. -- Sylvain