3
Benchmark batch creation of a large number of simple Items in a transaction.
6
from epsilon.scripts import benchmark
8
from axiom.store import Store
9
from axiom.item import Item
10
from axiom.attributes import integer, text
17
s = Store("TEMPORARY.axiom")
18
rows = [(x, unicode(x)) for x in xrange(10000)]
19
s.transact(lambda: s.batchInsert(AB, (AB.a, AB.b), rows))
22
s.transact(s.query(AB).deleteFromStore)
26
if __name__ == '__main__':