Uploaded image for project: 'Realm Core'
  1. Realm Core
  2. RCORE-1761

Query engine pipeline manager

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: Q4-24FY
    • Component/s: None

      The code around management of sort/distinct/limit should be refactored to allow for easily adding new stages as well as for planning and optimizing the process from a high level view. We could introduce a pipeline planner that has the ability to make optimizations such as: if we know we are doing a sort followed by a limit, we can restrict the sorting stage to only store and sort the N limited items instead of sorting all items in the results.

      Making time for this project would be a great first step before doing Group By. It would also make it easier for new features such as https://github.com/realm/realm-core/pull/6759

            Assignee:
            Unassigned Unassigned
            Reporter:
            james.stone@mongodb.com James Stone
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: