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

Deprecate system.js

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • 7.1.0
    • None
    • None

    Description

      MongoDB allows customers to store javascript functions on the server in a system collection called system.js.

      The functions customer stored within the system.js collection could be used within aggregations and queries such as mapReduce and $where respectively. 

      Starting in MongoDB 5.0 mapReduce is deprecated in favor of an aggregation pipeline and for $where alternatives such as $expr are preferred due to better performance.

      System.js should be deprecated as the native built-in capabilities of the aggregation framework have increased and $function exists if custom expressions are needed.

      Attachments

        Activity

          People

            matt.panton@mongodb.com Matt Panton
            matt.panton@mongodb.com Matt Panton
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: