Tathagata Das created SPARK-20883:
-------------------------------------
Summary: Improve StateStore APIs for efficiency
Key: SPARK-20883
URL: https://issues.apache.org/jira/browse/SPARK-20883
Project: Spark
Issue Type: Improvement
Components: Structured Streaming
Affects Versions: 2.2.0
Reporter: Tathagata Das
Assignee: Tathagata Das
Current state store API has a bunch of problems that causes too many transient
objects causing memory pressure.
- StateStore.get() returns Options which forces creation of Some/None objects
for every get
- StateStore.iterator() returns tuples which forces creation of new tuple for
each record returned
- StateStore.updates() requires the implementation to keep track of updates,
while this is used minimally (only by Append mode in streaming aggregations).
This can be totally removed.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]