v8: speed up $where clause (using read-only, etc)

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: JavaScript
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      $where should be optimized since it runs on every single record.
      Things that can speed up:

      • use read-only js object
      • dont set 'obj', ppl can use 'this'. Dont see mention of 'obj' in our doc.
      • dont set 'fullObject', looks like old legacy?

            Assignee:
            DO NOT USE - Backlog - Platform Team
            Reporter:
            Antoine Girbal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: