Changes between Version 43 and Version 44 of DeveloperGuidelines/Optimisation


Ignore:
Timestamp:
06/18/10 08:50:49 (11 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Optimisation

    v43 v44  
    167167{{{
    168168ids = filter(lambda x: some_function(x), y)
    169 records = db(db.mytable.id.belongs(ids)).select()
    170 for record in records:
    171     ...
     169if ids:
     170    records = db(db.mytable.id.belongs(ids)).select()
     171    for record in records:
     172        ...
    172173}}}
    173174
     
    180181DeveloperGuidelines
    181182DeveloperGuidelines
     183DeveloperGuidelines