max-melentyev commented on PR #1959: URL: https://github.com/apache/cassandra-gocql-driver/pull/1959#issuecomment-4712470026
> Note that query objects are not safe for concurrent use so if you plan on making some kind of wrapper API then take this into consideration. yep. And with previous pooling option it was also possible to re-use queries between different sessions, and with different statement. I think it would be great to remove reference to a Session from Query object. This way it will be possible to cache fully configured query object (retries, timeouts, etc.) and re-use it even if session needs reconnection, for example if credentials needs to be rotated. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

