{"shas":[["fd2be24b767896b390f32e0685614d64d12a7b8e","b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@aaronsw.com","Optimize multiple_insert (closes #58)\n\nThis takes the following simple test from 1.8s to .5s on my machine:\n\n\t\timport time\n\t\timport web\n\n\t\tdef generatedicts(n):\n\t\t    for i in xrange(n):\n\t\t        yield {'x': i, 'y': i*3, 'j': 'koo'}\n\n\t\tdb = web.DB(None, {})\n\t\tdb.supports_multiple_insert = True\n\n\t\ta = time.time()\n\t\tdb.multiple_insert('person', values=list(generatedicts(10000)), _test=True)\n\t\tb = time.time()\n\n\t\tprint b - a","Aaron Swartz"]],"repo":"webpy/webpy","actor":"aaronsw","ref":"refs/heads/master","size":1,"head":"fd2be24b767896b390f32e0685614d64d12a7b8e","actor_gravatar":"2ee45d7dd2c26c6fea3b887f831f7b38","push_id":27792994}