[SERVER-83269] Deprecate system.js Created: 15/Nov/23  Updated: 16/Nov/23

Status: Needs Scheduling
Project: Core Server
Component/s: None
Affects Version/s: 7.1.0
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Matt Panton Assignee: Matt Panton
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-64476 system.js fails to work seamlessly in... Closed
is related to SERVER-82802 Enable system.js functionality when c... Backlog
Participants:

 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.


Generated at Thu Feb 08 06:51:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.