SQLAlchemy Query can be used as an iterable to avoid creation of a list
Bug #1173133 reported by
Roman Podoliaka
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Wishlist
|
Roman Podoliaka |
Bug Description
A Query.all() call creates a list of a DB query results. We can actually use a Query instance as an iterable and thus avoid creation of a list if we just need to iterate over those values only once.
Changed in quantum: | |
assignee: | nobody → Roman Podolyaka (rpodolyaka) |
Changed in quantum: | |
importance: | Undecided → Wishlist |
Changed in quantum: | |
milestone: | none → havana-1 |
Changed in quantum: | |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | havana-1 → 2013.2 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/27556
Review: https:/