Skip to content

Instantly share code, notes, and snippets.

@mattn
Created June 24, 2009 05:52
Show Gist options
  • Save mattn/135038 to your computer and use it in GitHub Desktop.
Save mattn/135038 to your computer and use it in GitHub Desktop.
import os
import hamsterdb
if os.path.exists("test.db"):
os.remove("test.db")
db = hamsterdb.db()
db.create("test.db")
for i in range(0, 1000000):
db.insert("%d"%i, "%d"%i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment