Changes between Version 26 and Version 27 of DeveloperGuidelines/Optimisation


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

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Optimisation

    v26 v27  
    5252}}}
    5353
    54  2. '''Ask exactly for what you expect''':
     54 2. '''Ask exactly for what you expect''' (=limit your query):
     55
    5556    - if you expect only one result, then limit the search by limitby:
    5657
     
    7778}}}
    7879
    79  3. '''Don't ask twice for the same record''':
     80 3. '''Don't ask twice for the same record'''. Look down your code whether your need the same record later on again:
    8081
    8182{{{
     
    9495}}}
    9596
    96   4. '''Don't loop over queries''', if you can avoid id:
     97  4. '''Don't loop over queries''', if you can avoid id. Sometimes it is not as easy to see as in the following example:
    9798
    9899{{{