Open Lorak-mmk opened 2 months ago
Something I was unaware of: https://github.com/scylladb/scylla-rust-driver/issues/546 Currently driver doesn't refresh on schema change event, only on topology change event. This needs to be fixed before we can disable periodical fetching. On event we could also only download the changed parts of schema.
Currently driver refreshes metadata in 4 situations:
Metadata may be big and so fetching it may take a lot of resources. This will be partially mitigated by https://github.com/scylladb/scylla-rust-driver/issues/595 because only necessary metadata will be fetched by default, but
If cql-events are working correctly there should be no need to periodically refresh metadata. I propose to assume that they are working properly, make it possible to fully disable periodical fetching and disable it by default.