MapReduce with MongoDB really, really slow (30 hours vs 20 minutes in MySQL for a equivalent database)

后端 未结 3 933
悲哀的现实
悲哀的现实 2021-01-02 11:21

I am doing now some data analyse tests and in the first, really simple I have got very strange results.

The idea is the following: from an internet access log (a col

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-02 12:05

    I've actually answered this very similar question before. The limitations of Map Reduce in MongoDB have been outlined previously - as you mentioned, it is single threaded, it has to be converted to Java Script (spidermonkey) and back etc.

    That is why there are other options:

    1. The MongoDB Hadoop Connector (officially supported)
    2. The Aggregation Framework (Requires 2.1+)

    As of this writing the 2.2.0 stable release was not yet out, but it was up to RC2, so the release should be imminent. I would recommend giving it a shot as a more meaningful comparison for this type of testing.

提交回复
热议问题