python-driver icon indicating copy to clipboard operation
python-driver copied to clipboard

Caching prepared statements automatically

Open rpstw opened this issue 1 year ago • 2 comments

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?

rpstw avatar Oct 09 '24 09:10 rpstw

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

dkropachev avatar Oct 09 '24 09:10 dkropachev

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

rpstw avatar Oct 10 '24 01:10 rpstw