marcofognog/heroku-mongo-sync — pull request #2 by joeljunstrom (2013-10-09 11:59:06+00:00)
Title: Cache calls to collection.size

`col.size` was called twice for each record in each collection when
displaying the progress.

For larger collections this leads to huge performance hits when syncing
most often ending up in timeouts.