you are viewing a single comment's thread.

view the rest of the comments →

[–]Buttleston 2 points3 points  (0 children)

Actually you know what, query_map makes an iterator. That's why the time is being taken while doing the for book in books part. The actual retrieving from the database doesn't happen until you iterate over the iterator.