Advantages of the JavaScript V8 engine in MongoDB for map reduction

It looks like the JavaScript V8 engine may be replacing SpiderMonkey in MongoDB v2.2 + .

What benefits, if any, will slow down MongoDB card performance?

For example:

  • Will the overall JavaScript performance improve (I assume this is a given?)
  • Will the possibility of parallel work with cards and reduction work in parallel in one copy?
  • Will the map-reduce still block each other?
+8
mongodb v8
source share
1 answer

Yes, this will help with parallelism and help fulfill. The Spidermonkey mechanism restricts MongoDB to single threads, but the operations are usually short and allow other threads to alternate, so the exact effect is difficult to quantify. Of course, testing always helps to understand the benefits.

As you can see here: https://jira.mongodb.org/browse/SERVER-4258

And here: https://jira.mongodb.org/browse/SERVER-4191

Some improvements are already available for testing in a development release. To test V8, just create with V8 as described here:

http://www.mongodb.org/display/DOCS/Building+with+V8

+1
source share

All Articles