cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Rolo <r...@pythian.com>
Subject Re: how to batch the select query to reduce network communication
Date Fri, 06 Feb 2015 11:39:52 GMT
Hi,

You can't. Batches are only available for INSERT, UPDATE and DELETE
operations. Batches exist to give Cassandra some atomicity, as in, or all
operations succeed or all fail.

Regards,

Regards,

Carlos Juzarte Rolo
Cassandra Consultant

Pythian - Love your data

rolo@pythian | Twitter: cjrolo | Linkedin: *linkedin.com/in/carlosjuzarterolo
<http://linkedin.com/in/carlosjuzarterolo>*
Tel: 1649
www.pythian.com

On Fri, Feb 6, 2015 at 12:21 PM, diwayou <diwayou@vip.qq.com> wrote:

> create table t {
> a int,
> b int,
> c int
> }
> if i want to execute
> select * from t where a = 1 and b = 2 limit 10;
> select * from t where a = 1 and b = 3 limit 10;
>
> how can i batch this, and only execute once to get the result
>

-- 


--




Mime
View raw message