yifan-c commented on code in PR #144: URL: https://github.com/apache/cassandra-sidecar/pull/144#discussion_r1915452328
########## server-common/src/main/java/org/apache/cassandra/sidecar/common/server/StorageOperations.java: ########## @@ -102,4 +102,16 @@ default void outOfRangeDataCleanup(@NotNull String keyspace, @NotNull String tab { outOfRangeDataCleanup(keyspace, table, 1); } + + /** + * @return the operation-mode of the Cassandra instance + */ + String getOperationMode(); Review Comment: Adding a bit more details to my comment. _Only if_ operationMode is queries a lot, it could cache the value and periodically refresh internally, to avoid loading Cassandra every single time. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org For additional commands, e-mail: pr-h...@cassandra.apache.org