Changes between Version 16 and Version 17 of DeveloperGuidelines/Optimisation


Ignore:
Timestamp:
11/17/09 19:29:35 (15 years ago)
Author:
Fran Boon
Comment:

Correct order!

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Optimisation

    v16 v17  
    2424----
    2525{{{
    26 value = table[id].field
     26value = db(table.id==id).select(table.field, limitby=(0, 1))[0]
    2727}}}
    2828runs 1.5x faster than:
    2929{{{
    30 value = db(table.id==id).select(table.field, limitby=(0, 1))[0]
     30value = table[id].field
    3131}}}
    3232(0.012 vs. 0.007 seconds vs in a test case)