Skip to content

Instantly share code, notes, and snippets.

@vishnevskiy
Created July 2, 2010 06:35
Show Gist options
  • Save vishnevskiy/461017 to your computer and use it in GitHub Desktop.
Save vishnevskiy/461017 to your computer and use it in GitHub Desktop.
import time
import pymongo
import gc
conn = pymongo.Connection('localhost', 27017)
system = conn.dkp.systems.find_one()
for raid in conn.dkp.raids.find({'system_id': system['_id']}):
pass
while True:
gc.collect()
time.sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment