From: Gaƫtan de Menten Date: Wed, 3 Mar 2010 20:40:39 +0000 (+0000) Subject: timings should use getitem syntax and not the slow getattr one X-Git-Tag: rel_0_6beta2~76 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=17fee657a62991dd8c1665ee0ddec7f0576c265e;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git timings should use getitem syntax and not the slow getattr one --- diff --git a/test/perf/objselectspeed.py b/test/perf/objselectspeed.py index d3fd340466..816643680b 100644 --- a/test/perf/objselectspeed.py +++ b/test/perf/objselectspeed.py @@ -67,10 +67,10 @@ def sql_select(entity_cls): people = [] for row in Person_table.select().execute().fetchall(): person = entity_cls() - person.id = row.id - person.name = row.name - person.sex = row.sex - person.age = row.age + person.id = row['id'] + person.name = row['name'] + person.sex = row['sex'] + person.age = row['age'] people.append(person) #@profiling.profiled(report=True, always=True)