[
https://issues.apache.org/jira/browse/FLINK-3947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15459017#comment-15459017
]
Stephan Ewen commented on FLINK-3947:
-------------------------------------
[~elevy] I think we can approach this two ways
- Add another form of state where the state per Flink-key can be multiple
values. That would be something like a {{MapState}} and in RocksDB, each map
entry would be keyed by (flink-key, map-key) - thus with efficient access and
not the entire map would need to be in memory.
- We can try and find a way to give direct access to the state backends. That
is not that hard, but to make sure it plays well with transparent state
re-distribution on scale-up / scale-down needs a few thoughts.
What's your feeling, what would be the way to go?
> 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)