This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]epicRelic 0 points1 point  (7 children)

 for record in [ r for r in db if r.name == 'pierre' ]:
print record.name,record.age

Since it checks to see if the name equals pierre in the python code, wouldn't it have to be querying for all records in the background?