Changes between Version 51 and Version 52 of DeveloperGuidelines/Optimisation


Ignore:
Timestamp:
06/18/10 09:59:45 (11 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Optimisation

    v51 v52  
    218218        (db.table1.some_attribute == some_value) & \
    219219        (db.table2.id = db.table1.some_key)
    220 record2 = db(query).select(db.table2.ALL, limitby(0,1)).first()
    221 if record2:
     220rows = db(query).select(db.table2.ALL)
     221for record2 in rows:
    222222    ...
    223223}}}