Skip to content

Instantly share code, notes, and snippets.

@kyu999
Created November 17, 2014 11:04
Show Gist options
  • Save kyu999/fc218d996dd8339fe6db to your computer and use it in GitHub Desktop.
Save kyu999/fc218d996dd8339fe6db to your computer and use it in GitHub Desktop.
pymongo
found = coll.find()[0:x]
found.alive # if could get more date potentially, return True, else false
found.next() # get more date. it occcurs error when no more data in the coll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment