Github user StefanRRichter commented on a diff in the pull request:
https://github.com/apache/flink/pull/5465#discussion_r169105350
--- Diff:
flink-contrib/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/RocksDBMapState.java
---
@@ -400,7 +410,7 @@ public UV setValue(UV value) {
/** An auxiliary utility to scan all entries under the given key. */
private abstract class RocksDBMapIterator<T> implements Iterator<T> {
- static final int CACHE_SIZE_BASE = 1;
+ static final int CACHE_SIZE_BASE = 32;
--- End diff --
And if memory is really a concern, then I would also think about releasing
the raw bytes from the entry once we have lazily deserialized the objects from
them.
---