You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Florian Hockmann (JIRA)" <ji...@apache.org> on 2018/02/02 08:49:00 UTC
[jira] [Created] (TINKERPOP-1882) Apply range and limit steps as
early as possible
Florian Hockmann created TINKERPOP-1882:
-------------------------------------------
Summary: Apply range and limit steps as early as possible
Key: TINKERPOP-1882
URL: https://issues.apache.org/jira/browse/TINKERPOP-1882
Project: TinkerPop
Issue Type: Improvement
Components: process
Affects Versions: 3.3.1, 3.2.7
Reporter: Florian Hockmann
For a traversal like
{{g.V(a).out().valueMap().limit(123)}}
we can simply move the {{limit()}} to the left so we get:
{{g.V(a).out().limit(123).valueMap()}}
This avoids unnecessary database lookups.
We should create a strategy that moves the {{limit}} and the {{range}} step like this to _the left_ for all {{map}} steps.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)