[SERVER-46494] Improve the performance of $function Created: 28/Feb/20  Updated: 29/Oct/23  Resolved: 13/Mar/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.4.0-rc0, 4.7.0

Type: Task Priority: Major - P3
Reporter: James Wahlin Assignee: Eric Cox (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
related to SERVER-47377 Complete TODO listed in SERVER-46494 Closed
is related to SERVER-46492 Restore WhereMatchExpression for $where Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4
Sprint: Query 2020-03-09, Query 2020-03-23
Participants:

 Description   

One very local improvement we can make is memoizing the Scope::createFunction method.



 Comments   
Comment by Githook User [ 18/Sep/20 ]

Author:

{'name': 'Eric Cox', 'email': 'eric.cox@mongodb.com', 'username': 'ericox'}

Message: SERVER-47377 Complete TODO listed in SERVER-46494
Branch: master
https://github.com/mongodb/mongo/commit/264b6427f2a70bea84b33a549a41a0917ac9d0f5

Comment by Githook User [ 24/Mar/20 ]

Author:

{'email': 'eric.cox@mongodb.com', 'name': 'Eric Cox', 'username': 'ericox'}

Message: SERVER-46494 improve perf of '$function'

(cherry picked from commit 16889524ede36d890f863b63447ba0af9d75013e)
Branch: v4.4
https://github.com/mongodb/mongo/commit/39859ac22c0b7cf2065960118e74e80266288c87

Comment by Githook User [ 13/Mar/20 ]

Author:

{'username': 'ericox', 'name': 'Eric Cox', 'email': 'eric.cox@mongodb.com'}

Message: SERVER-46494 improve perf of '$function'
Branch: master
https://github.com/mongodb/mongo/commit/16889524ede36d890f863b63447ba0af9d75013e

Generated at Thu Feb 08 05:11:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.