datastax / cql-proxy

A client-side CQL proxy/sidecar.
Apache License 2.0
172 stars 82 forks source link

Add idempotent flag and graph queries default to not idempotent #93

Closed mpenick closed 2 years ago

mpenick commented 2 years ago

If the proxy detects a graph query (using custom payload key "graph-source") it treats the queries a not idempotent, unless a idempotent flag is set to true. This not perfect, but it is not possible to easily determine if a graph query is idempotent.

mpenick commented 2 years ago

This also exposes dse_version in system.local and system.peers when the backend cluster is DSE.

mpenick commented 2 years ago

This also exposes dse_version in system.local and system.peers when the backend cluster is DSE.

mpenick commented 2 years ago

That's a great suggestion. I'll change it to something like --idempotent-graph.