[SERVER-4653] v8: speed up $where clause (using read-only, etc) Created: 10/Jan/12  Updated: 14/Apr/16  Resolved: 15/Jan/16

Status: Closed
Project: Core Server
Component/s: JavaScript
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Antoine Girbal Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

$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?

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