incubator-cassandra-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Cohen <>
Subject should you reuse PreparedStatements?
Date Sun, 04 Aug 2013 00:34:39 GMT
More specifically, is it "best practice" to reuse PreparedStatements,
rather than creating a new one  via session.prepare() on each database
access? Is there any performance benefit to this? I've glanced at the java
driver code and it does appear that if I were doing something like:

public List fetchSomething() {
    return this.session.execute(
this.session.prepare("some cql")

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message