Changes between Version 43 and Version 44 of DeveloperGuidelines/Optimisation
- Timestamp:
- 06/18/10 08:50:49 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Optimisation
v43 v44 167 167 {{{ 168 168 ids = filter(lambda x: some_function(x), y) 169 records = db(db.mytable.id.belongs(ids)).select() 170 for record in records: 171 ... 169 if ids: 170 records = db(db.mytable.id.belongs(ids)).select() 171 for record in records: 172 ... 172 173 }}} 173 174 … … 180 181 DeveloperGuidelines 181 182 DeveloperGuidelines 183 DeveloperGuidelines