I work this the .NET driver for MongoDB.
My question is quite :
What is preferable and why :
process data using javascript on the MongoDB server
or
load thd data to client and do all the work using the driver methods ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should avoid processing data on the mongodb server using JavaScript if at all possible. The reason is that the JavaScript engine is single-threaded. This means that only one thread can be running the JavaScript engine at one time. As you can imagine, this will greatly impact performance if you have multiple clients connecting to mongodb — all of these request will be serialized.