PS: If you use MySQL: Enable slow log, see what happens, then optimize it. If ever the DB is a bottleneck, then you are almost certainly missing indices or doing something else in a very roundabout manner that can be optimized. That, or have a severe RAM shortage. -- other DB packages probably have similar logs.