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

Apply range and limit steps as early as possible

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.2.7, 3.3.1
    • 3.3.6, 3.4.1
    • process
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: