Skip to content

Instantly share code, notes, and snippets.

@boo1ean
Created July 20, 2014 11:57
Show Gist options
  • Save boo1ean/be7fa2a94fcaa041f603 to your computer and use it in GitHub Desktop.
Save boo1ean/be7fa2a94fcaa041f603 to your computer and use it in GitHub Desktop.
import db
from multiprocessing import Pool
def process_pollution(wb):
pass
if __name__ == '__main__':
items = db.waterbodies.find()
p = Pool(16)
p.map(process_pollution, items)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment