[
https://issues.apache.org/jira/browse/FLINK-3947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15459066#comment-15459066
]
Elias Levy commented on FLINK-3947:
-----------------------------------
I'd go with the first choice, higher level abstractions for state that consist
of containers (sets, lists, maps, ordered maps, LRUs) but that efficiently
access the values stored in the containers by exploiting features of the state
store backend (RocksDB in this case). That will allow you to swap out the
state backend in the future is needed or even implement different state
backends at the same time (e.g. LMDB) , possibly for different state
abstractions.
The ask for low level access to RocksDB is really just because of the
inefficiency of the current state abstractions for container types of state.
A side benefit of these more efficient container type abstractions is that they
will also benefit when you get around to implementing incremental state
snapshots
> Provide low level access to RocksDB state backend
> -------------------------------------------------
>
> Key: FLINK-3947
> URL: https://issues.apache.org/jira/browse/FLINK-3947
> Project: Flink
> Issue Type: Improvement
> Components: State Backends, Checkpointing
> Affects Versions: 1.0.3
> Reporter: Elias Levy
>
> The current state API is limiting and some implementations are not as
> efficient as they could be, particularly when working with large states. For
> instance, a ListState is append only. You cannot remove values from the
> list. And the RocksDBListState get() implementation reads all list values
> from RocksDB instead of returning an Iterable that only reads values as
> needed.
> Furthermore, RocksDB is an ordered KV store, yet there is no ordered map
> state API with an ability to iterate over the stored values in order.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)