You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/04 18:11:23 UTC

[GitHub] [beam] damccorm opened a new issue, #20570: Cassandra sessions should be (cached) reused per keyspace per host

damccorm opened a new issue, #20570:
URL: https://github.com/apache/beam/issues/20570

   According to the Datastax document for session "{color:#4c9aff}*As a given session can only be "logged" into one keyspace at a time (where the "logged" keyspace is the one used by queries that don't explicitly use a fully qualified table name), it can make sense to create one session per keyspace used. This is however not necessary when querying multiple keyspaces since it is always possible to use a single session with fully qualified table names in queries.*{color}"(source: [https://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/Session.html).](https://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/Session.html).) 
   
   The session fields in Mutator<T\> class should be cached and reused for a keyspace and host. 
   
   [https://github.com/apache/beam/blob/master/sdks/java/io/cassandra/src/main/java/org/apache/beam/sdk/io/cassandra/CassandraIO.java#L1225](https://github.com/apache/beam/blob/master/sdks/java/io/cassandra/src/main/java/org/apache/beam/sdk/io/cassandra/CassandraIO.java#L1225) 
   
   Imported from Jira [BEAM-11399](https://issues.apache.org/jira/browse/BEAM-11399). Original Jira may contain additional context.
   Reported by: manojks.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org