scylladb / python-driver

ScyllaDB Python Driver, originally DataStax Python Driver for Apache Cassandra
https://python-driver.docs.scylladb.com
Apache License 2.0
75 stars 42 forks source link

Caching prepared statements automatically #381

Open rpstw opened 1 month ago

rpstw commented 1 month ago

https://github.com/scylladb/scylla-go-driver supports transparently preparing and caching prepared statements. As of my understanding, python driver does not support this and if we would, it should be implemented in this repo. Any thoughts about adding this?

dkropachev commented 1 month ago

https://github.com/scylladb/scylla-go-driver supports transparently preparing and caching prepared statements. As of my understanding, python driver does not support this and if we would, it should be implemented in this repo. Any thoughts about adding this?

Could you please specify what exactly transparantly means

rpstw commented 1 month ago

I pasted a wrong repo. Also the feature should be automatic, I used a wrong word.

The correct repo should be https://github.com/scylladb/gocql.

Since it's a fork of Cassandra's gocql, please check doc from Cassandra's driver: https://pkg.go.dev/github.com/gocql/gocql#hdr-Prepared_statements.

Also this is where automatically prepare happens: https://github.com/scylladb/gocql/blob/62a0ae1344f7c67fe94bb30de3e9591881cf6c3c/conn.go#L1404