You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@s2graph.apache.org by "DOYUNG YOON (JIRA)" <ji...@apache.org> on 2016/02/23 10:02:18 UTC

[jira] [Created] (S2GRAPH-44) Provide cache for WhereParser on query.

DOYUNG YOON created S2GRAPH-44:
----------------------------------

             Summary: Provide cache for WhereParser on query.
                 Key: S2GRAPH-44
                 URL: https://issues.apache.org/jira/browse/S2GRAPH-44
             Project: S2Graph
          Issue Type: Improvement
            Reporter: DOYUNG YOON
            Assignee: DOYUNG YOON


Currently, we are building WhereParser on every request and scala parser combinator is notorious for it's slow performance. Actually we don't have to build WhereParser on every request.

WhereParser is dependent only on Label and where clause string. so I think it is better to provide parser cache with following key. note that Where class do not contain actual data, but expect caller to provide edge to check if given edge should be included or not.

Key: labelName + where clause string.
Value: Where class that hold structure for filtering.

I think this can be important performance improvement and easy to implement.





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)