|
|||||||||||
|
Re: [PERFORM] Where do a novice do to make it run faster?
From: PFC <lists(at)peufeu.com>
Date: Mon Apr 28 2008 - 14:23:12 EDT You got the order slightly wrong I guess. > 1) hardware Would only come first if your RAM is really too small, or you use RAID5 on write-heavy tables, or what limits you is transaction fsync (hint : 8.3). Adding RAM is cheap. > 2) rewriting my queries and table structures This should really come first. Log expensive queries. Note that an expensive query can be a slow query,or be a rather fast query that you execute lots of times, or a very simple and fast query that you execute really really too often.
Now ask yourself :
Example : You put your sessions in a database ?session if it depends on the user, but don't reload the thing on each page ! This feature is uselessusers who have their birthday today ? UPDATEs...time ? What about updating it every 5 minutes instead ?
Example :
etc.
Now you should see some easy targets.
-- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performanceReceived on Mon Apr 28 14:18:47 2008 This archive was generated by hypermail 2.1.8 : Wed Jul 30 2008 - 20:19:36 EDT |
||||||||||
|
|||||||||||