Skip to content

Instantly share code, notes, and snippets.

@johndobrien
Created August 28, 2012 12:42
Show Gist options
  • Save johndobrien/3497710 to your computer and use it in GitHub Desktop.
Save johndobrien/3497710 to your computer and use it in GitHub Desktop.
filling a u1db with docs
def fill_db(db, count=DOC_COUNT, docsize=STD_DOC_SIZE):
doc_ids = []
if _ in range(count):
doc = db.create_doc({"akey": "*" * docsize})
doc_ids.append(doc.doc_id)
return doc_ids
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment