Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caching prepared statements automatically #381

Open
rpstw opened this issue Oct 9, 2024 · 2 comments
Open

Caching prepared statements automatically #381

rpstw opened this issue Oct 9, 2024 · 2 comments

Comments

@rpstw
Copy link

rpstw commented Oct 9, 2024

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
Copy link
Collaborator

dkropachev commented Oct 9, 2024

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
Copy link
Author

rpstw commented Oct 10, 2024

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 rpstw changed the title Caching prepared statements transparently Caching prepared statements automatically Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants