masteryhx commented on code in PR #21835: URL: https://github.com/apache/flink/pull/21835#discussion_r1241087044
########## docs/content/docs/dev/datastream/fault-tolerance/state.md: ########## @@ -633,6 +633,15 @@ Updating the timestamp more often can improve cleanup speed but it decreases compaction performance because it uses JNI call from native code. The default background cleanup for RocksDB backend queries the current timestamp each time 1000 entries have been processed. +Periodic compaction could speed up expired state entries cleanup, especially for state entries rarely accessed. Review Comment: I have added the description to the `Note` . -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org