[SERVER-9898] Performance of JavaScript Stored Function on MongoDB Server Created: 11/Jun/13  Updated: 11/Jun/13  Resolved: 11/Jun/13

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

Type: Question Priority: Major - P3
Reporter: Abhishek Kumar Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: javascript, mongodb, performance
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux


Issue Links:
Duplicate
duplicates SERVER-9899 Performance of JavaScript Stored Func... Closed
Participants:

 Description   

This is related to javascript stored function in mongodb server. I know all the details about the working and use cases. I am doubtful about one line which is in the official documentation of MongoDB.

"Note : We do not recommend using server-side stored functions if possible."

After moving to V8 JavaScript engine ( improving concurrency issues for javascript queries ) and given the fact this may save us many network round trip time, why this is not recommended?

Also, if there some performance difference in running javascript queries Vs running normal queries ( given both are able to use index ) ?

Please link me to supported documentation. Also, it will be much useful, if the reason for such statements are also mentioned in the documentation.


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