Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-1882

Apply range and limit steps as early as possible

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2.7, 3.3.1
    • Fix Version/s: 3.3.6, 3.4.1
    • Component/s: process
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dkuppitz Daniel Kuppitz
                Reporter:
                Florian Hockmann Florian Hockmann
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: