pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rod Taylor <rbt@rbt.ca>
To: rantunes@student.dei.uc.pt
Cc: Postgresql Performance <pgsql-performance@postgresql.org>
Subject: Re: Indices arent being used
Date: Thu, 25 Sep 2003 19:46:41 -0400
Message-ID: <1064533600.27395.6.camel@jester> (raw)
In-Reply-To: <200309252228.h8PMSeXA009897@student.dei.uc.pt>
References: <200309252228.h8PMSeXA009897@student.dei.uc.pt>

> 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 into a
> small problem which I hope could be resolved here.
> 
> I'm trying to speed up this query:
> 
> select count(*) from actvars, prodlevel where
> actvars.product_level=prodlevel.code_level and
> prodlevel.division_level='OY3S5LAPALL6';

How about EXPLAIN ANALYZE output?

> ACTVARS is a fact table of aproximatly 16 million rows, PRODLEVEL has 20700
> rows. Both have btree indices. 

> The database has been vacuumed and analyze has been executed.

The usual postgresql.conf adjustments have also been made?

Attachments:

  signature.asc (application/pgp-signature, 186B) download

view thread (7+ messages)  latest in thread

Message-ID: <1064533600.27395.6.camel@jester>
Permalink:  ../1064533600.27395.6.camel@jester/
Also on:    postgresql.org/message-id/1064533600.27395.6.camel@jester

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: rbt@rbt.ca, rantunes@student.dei.uc.pt
  Subject: Re: Indices arent being used
  In-Reply-To: <1064533600.27395.6.camel@jester>
  References: <200309252228.h8PMSeXA009897@student.dei.uc.pt> <1064533600.27395.6.camel@jester>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox