Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-89632

$queryStats: Track js methods used in queries

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Query Integration

      As we plan to eventually remove support of server-side javascript, one of the prerequisites for it is making sure users can easily rewrite their exising queries using js into native agg, so we may want to introduce some new expressions.
      Today when js is used in query, in $queryStats output it's captures like

      filter: { '$where': '?javascript' }

      It would be very helpful to know which native js methods were used inside that javascript (e.g. JSON.stringify(), hex_md5() etc) for queries with $where, $function, $accumulator

            Assignee:
            alyssa.clark@mongodb.com Alyssa Clark
            Reporter:
            kateryna.kamenieva@mongodb.com Katya Kamenieva
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: