def main(): s = Store("TEMPORARY.axiom") rows = [(x, unicode(x)) for x in xrange(10000)] s.transact(lambda: s.batchInsert(AB, (AB.a, AB.b), rows)) benchmark.start() s.transact(s.query(AB).deleteFromStore) benchmark.stop()
def main(): s = Store("TEMPORARY.axiom") rows = [(x, str(x)) for x in range(10000)] s.transact(lambda: s.batchInsert(AB, (AB.a, AB.b), rows)) def deleteStuff(): for it in s.query(AB): it.deleteFromStore() benchmark.start() s.transact(deleteStuff) benchmark.stop()
def main(): s = Store("TEMPORARY.axiom") benchmark.start() rows = [(x, str(x)) for x in range(10000)] s.transact(lambda: s.batchInsert(AB, (AB.a, AB.b), rows)) benchmark.stop()