Rule #1 above all others: Avoid long runners. This may be done by turning them into a couple of short runners. Based on the above example, a delete of yesterdays events could be broken down to 24 steps, starting with a
"DELETE ... WHERE event_date=(current_date-1 day) AND event_time>='23:00:00' "
and ending with
"... even_time>='00:00:00' ".
If there's no possibility to go that way, the execution may gain speed by one or more of the following steps:
- Try to do this in off peak hours to have more resources for your long runner.
- Increase the size of the buffer pool(s) and the NUM_IOCLEANERS if necessary/possible.
- Log files should not be placed on the same physical file system as the database itself.
- Sometimes increasing the parameter LOGBUFSZ has a possitive effect. (Attention: LOGBUFSZ is allocated within DBHEAP so you have to change this value, too.)
Keine Kommentare:
Kommentar veröffentlichen