Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1197

Performance question regarding map/reduce: map reduce mongo fonction slower than naive (python) counting

    Details

    • Type: Question
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: 1.5.2
    • Fix Version/s: None
    • Component/s: Performance
    • Labels:
      None
    • Environment:
      GNU/Linux Ubuntu (Lucid) mongodb-unstable package (version 20100604)

      Description

      We coded the given map/reduce example (http://api.mongodb.org/python/current/examples/map_reduce.html) directly in python and got much better performance (see attached script) ... did we get anything wrong?

      Usage of the script (will create sample data and time the two methods):

      python mongo_map_reduce_counter.py test_db_name

      Example output (with nb_objects=5000, nb_tags=200, nb_bins=3):
      $>python mongo_map_reduce_counter.py test_sdsd
      calc naive time 0.317932844162
      calc map_reduce time 110.605533838
      Same results? True

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: