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

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 1.5.2
    • Performance
    • None
    • 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

            eliot Eliot Horowitz (Inactive)
            alain Alan
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: