Commit 71eb746c authored by Kevin Modzelewski's avatar Kevin Modzelewski

Merge pull request #641 from toshok/increase_sqlalchemy_time

do 100 queries per insert instead of 1000 after all inserts.
parents 1bc20596 12e00f4e
......@@ -64,9 +64,8 @@ for i in xrange(100):
session.add(new_address)
session.commit()
# now do 1000 queries
for i in xrange(1000):
# do 100 queries per insert
for i in xrange(100):
session.query(Person).all()
print "done"
......@@ -56,9 +56,8 @@ for i in xrange(100):
new_address = Address.insert()
new_address.execute(post_code='00000')#, person=new_person)
# now do 1000 queries
for i in xrange(1000):
# do 100 queries per insert
for i in xrange(100):
s = Person.select()
rs = s.execute()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment