X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id EA4F1D1B523 for ; Thu, 25 Sep 2003 23:47:01 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 80856-08 for ; Thu, 25 Sep 2003 20:46:33 -0300 (ADT) Received: from mailav.tor1.inquent.com (mail.inquent.com [216.208.117.106]) by svr1.postgresql.org (Postfix) with ESMTP id B7D71D1B503 for ; Thu, 25 Sep 2003 20:46:14 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by mailav.tor1.inquent.com (Postfix) with ESMTP id C67A21024D; Thu, 25 Sep 2003 19:37:30 -0400 (EDT) Received: from [192.168.1.199] (dyn-135-183.tor.dsl.tht.net [134.22.135.183]) by mailav.tor1.inquent.com (Postfix) with ESMTP id 8A08A10248; Thu, 25 Sep 2003 19:37:28 -0400 (EDT) Subject: Re: Indices arent being used From: Rod Taylor To: rantunes@student.dei.uc.pt Cc: Postgresql Performance In-Reply-To: <200309252228.h8PMSeXA009897@student.dei.uc.pt> References: <200309252228.h8PMSeXA009897@student.dei.uc.pt> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-/BT6EIApzYafjfj1DtVE" Message-Id: <1064533600.27395.6.camel@jester> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Thu, 25 Sep 2003 19:46:41 -0400 X-Virus-Scanned: by AMaViS perl-11 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/326 X-Sequence-Number: 3692 --=-/BT6EIApzYafjfj1DtVE Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > Im running a Datawarehouse benchmark (APB-1) on PostgreSql. The objective= is to > choose which of the to main db (PostgreSQL, MySQL) is fastest. I've run i= nto a > small problem which I hope could be resolved here. >=20 > I'm trying to speed up this query: >=20 > select count(*) from actvars, prodlevel where > actvars.product_level=3Dprodlevel.code_level and > prodlevel.division_level=3D'OY3S5LAPALL6'; How about EXPLAIN ANALYZE output? > ACTVARS is a fact table of aproximatly 16 million rows, PRODLEVEL has 207= 00 > rows. Both have btree indices.=20 > The database has been vacuumed and analyze has been executed. The usual postgresql.conf adjustments have also been made? --=-/BT6EIApzYafjfj1DtVE Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQA/c35g6DETLow6vwwRAqcqAJ9JWOJoRYJm8tR38ZD1OB7rSvc41wCdFYU9 QElrSbM7COK6LtjzXgbMEZ8= =xzvg -----END PGP SIGNATURE----- --=-/BT6EIApzYafjfj1DtVE--