Changes between Version 16 and Version 17 of DeveloperGuidelines/Optimisation
- Timestamp:
- 11/17/09 19:29:35 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Optimisation
v16 v17 24 24 ---- 25 25 {{{ 26 value = table[id].field26 value = db(table.id==id).select(table.field, limitby=(0, 1))[0] 27 27 }}} 28 28 runs 1.5x faster than: 29 29 {{{ 30 value = db(table.id==id).select(table.field, limitby=(0, 1))[0]30 value = table[id].field 31 31 }}} 32 32 (0.012 vs. 0.007 seconds vs in a test case)