X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 38FDED1B515 for ; Wed, 22 Oct 2003 21:45:42 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 00867-02 for ; Wed, 22 Oct 2003 18:45:13 -0300 (ADT) Received: from davinci.ethosmedia.com (unknown [209.128.84.228]) by svr1.postgresql.org (Postfix) with ESMTP id E737FD1B538 for ; Wed, 22 Oct 2003 18:45:10 -0300 (ADT) Received: from [66.219.92.2] (HELO temoku) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 3808096; Wed, 22 Oct 2003 14:45:50 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: "Medora Schauer" , "postgresql" Subject: Re: slow select Date: Wed, 22 Oct 2003 14:42:56 -0700 User-Agent: KMail/1.4.3 References: <906E2C446A276048A1BE283F17BCB12CDB4230@encounter.fairind.fairfield.com> In-Reply-To: <906E2C446A276048A1BE283F17BCB12CDB4230@encounter.fairind.fairfield.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200310221442.56816.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/589 X-Sequence-Number: 4337 Medora, > Increasing effective_cache_size to 10000 did it.=20=20 That would be 78MB RAM. If you have more than that available, you can=20 increase it further. Ideally, it should be about 2/3 to 3/4 of available= =20 RAM. >The query now > takes 4 secs. I left random_page_cost at the default value of 4.=20=20 > I thought, mistakenly apparently, that our database was relatively=20 > itty bitty and so haven't messed with the .conf file.=20 Actually, for a itty bitty database on a fast machine, you definitely want = to=20 lower random_page_cost. It's a large database that would make you cautious= =20 about this. --=20 -Josh Berkus Aglio Database Solutions San Francisco