[SERVER-2936] Ability to store JavaScript libraries server-side Created: 12/Apr/11  Updated: 25/Oct/21  Resolved: 25/Oct/21

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

Type: New Feature Priority: Minor - P4
Reporter: Andy Gregorowicz Assignee: Geert Bosch
Resolution: Won't Do Votes: 20
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

It would be nice to have the ability to store JavaScript libraries server-side for use in MapReduce jobs or aggregation queries. While the system.js collection is handy for storing functions, it does not seem capable of handling a full library like the Underscore.js.



 Comments   
Comment by Sean Fao [ 06/Mar/14 ]

Is there still interest in developing this feature? It doesn't seem to be getting a lot of attention, but I think it would be incredibly helpful.

Comment by Ariel Jakobovits [ 07/Sep/12 ]

Yes! Great idea.

Comment by Mathias Kluba [ 07/Sep/12 ]

Loading a JS file thanks to db.system.js is possible (but we have to store it in all shards).
But a better solution will be to load dynamically Node.JS packages.
Now that mongo 2.2 has a better JS engine, it makes sens to do some complex MapReduce jobs.
Why not embed the NodeJS engine in this case?

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