spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gengliang Wang (Jira)" <j...@apache.org>
Subject [jira] [Created] (SPARK-31013) InMemoryStore: improve removeAllByIndexValues over natural key index
Date Mon, 02 Mar 2020 20:27:00 GMT
Gengliang Wang created SPARK-31013:
--------------------------------------

             Summary: InMemoryStore: improve removeAllByIndexValues over natural key index
                 Key: SPARK-31013
                 URL: https://issues.apache.org/jira/browse/SPARK-31013
             Project: Spark
          Issue Type: Improvement
          Components: Spark Core, Web UI
    Affects Versions: 3.1.0
            Reporter: Gengliang Wang
            Assignee: Gengliang Wang


The method `removeAllByIndexValues` in KVStore is to delete all the objects which have certain
values in the given index.
However, in the current implementation of  `InMemoryStore`, when the given index is the natural
key index, there is no special handling for it and a linear search over all the task data
is performed.

We can improve it by deleting the natural keys directly from the internal hashmap.




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message