pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: pgsql-performance@postgresql.org
Cc: charavay <c.charavay@ibcp.fr>
Subject: Re: Indexes performance
Date: Mon, 18 Oct 2004 12:45:10 -0700
Message-ID: <200410181245.10810.josh@agliodbs.com> (raw)
In-Reply-To: <417383CD.3050802@ibcp.fr>
References: <417383CD.3050802@ibcp.fr>

Charavay,

> ---------------------------------------------------------------------------
>-------- Hash Join  (cost=6793.29..1716853.80 rows=33743101 width=11)
>    Hash Cond: ("outer"."index" = "inner"."index")
>    ->  Seq Scan on lnk  (cost=0.00..535920.00 rows=33743100 width=15)
>    ->  Hash  (cost=4994.83..4994.83 rows=303783 width=4)
>          ->  Seq Scan dic  (cost=0.00..4994.83 rows=303783 width=4)
> (5 rows)

According to the estimate, you are selecting all of the rows in the database.   
This is going to require a Seq Scan no matter what.

-- 
--Josh

Josh Berkus
Aglio Database Solutions
San Francisco



view thread (3+ messages)  latest in thread

Message-ID: <200410181245.10810.josh@agliodbs.com>
Permalink:  ../200410181245.10810.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200410181245.10810.josh@agliodbs.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: josh@agliodbs.com, c.charavay@ibcp.fr
  Subject: Re: Indexes performance
  In-Reply-To: <200410181245.10810.josh@agliodbs.com>

* 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