Re: Indexes on Large Tables

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Donny Drummonds <donny(at)cypresstg(dot)com>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Indexes on Large Tables
Date: 2003-02-06 19:33:37
Message-ID: 20030206113257.H40575-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Mon, 3 Feb 2003, Donny Drummonds wrote:

> I am running a dual athlon 1800 with an gig of ram. I am running postgres
> 7.2. I have a table that hs 15 million rows. I have a query that has one
> columns and the select cluase and one column in the where clause with no
> joining or sub-queries. If I do not index the column from the where clause
> the query returns the 150,000 rows in 4 and a half minutes. If in do index
> the column from the where clause using a btree the 150,000 rows return in 11
> and a half minutes.
>
> Any insight would be greatly appreciated.

Hmm, have you analyzed recently? In any case, the table definition, query
and explain analyze outpute would be useful to see.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2003-02-06 19:44:13 Re: Problems upgrading from 7.1.3
Previous Message Tom Lane 2003-02-06 18:04:33 Re: pg_restore problem with 7.3.1