On Wed, Sep 11, 2013 at 11:52 PM, Paul LeoNerd <leon...@leonerd.org.uk>wrote:
> I have also found this > > https://issues.apache.org/jira/browse/CASSANDRA-4449 > > which requests is be a single global ID across the cluster Not exactly. The ticket was about making prepared statements global to one node (not global to the cluster) rather to one client connection. And yes, that's the case now as this ticket has been fixed in 1.2.0-beta2. That being said, since you talk about "ID", for a given query string, if you prepare it, it will always have the same ID technically because the ID is a hash of the query string (and you can rely on that). That being said, you still need to prepare the query string on every node of the cluster: a node won't be able to execute a prepared statement that hasn't been prepared on that node (and btw, prepared statements are not persisted across node restart). -- Sylvain