cassandra-client-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul "LeoNerd" Evans <>
Subject Re: Multi-node cluster-aware client connection
Date Wed, 11 Sep 2013 21:52:23 GMT
On Wed, 11 Sep 2013 17:20:16 +0100
Paul "LeoNerd" Evans <> wrote:

>  1. What is a good way to handle prepared statements here? Should they
>     be prepared on all the (primary/all?) nodes, or just one? Some
>     applications I could imagine having just a handful of heavily-used
>     prepared statements, so they'd become a hotspot on one node if it
>     wasn't spread around. But then what to do as new nodes become
>     elected as primaries? Should they be prepared eagerly on
>     connection? Lazily at next use?

So a careful reading of the python client [1] suggests that it's just
storing a single statement ID for the prepared statement across the
cluster. I have also found this

which requests is be a single global ID across the cluster, rather than
per node. Is this now the case then - does the statement have a single
ID across the entire cluster? Can I rely on this? In this case, do I
still have to prepare it on the other nodes, or is a single node


Paul "LeoNerd" Evans
ICQ# 4135350       |  Registered Linux# 179460

View raw message