pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John A Meinel <john@arbash-meinel.com>
To: Dan Harris <fbsd@drivefaster.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: slow joining very large table to smaller ones
Date: Thu, 14 Jul 2005 17:46:09 -0500
Message-ID: <42D6EB31.9040909@arbash-meinel.com> (raw)
In-Reply-To: <C3470621-9DB0-444A-BAD1-F9995E0142FB@drivefaster.net>
References: <46AF8F35-B735-4DFA-BA0A-AC82B5DA3CCE@drivefaster.net>
	<42D687E5.7080202@arbash-meinel.com>
	<C3470621-9DB0-444A-BAD1-F9995E0142FB@drivefaster.net>

Dan Harris wrote:
>
> On Jul 14, 2005, at 9:42 AM, John A Meinel wrote:

...
Did you try doing this to see how good the planners selectivity
estimates are?

>> Well, postgres is estimating around 500 rows each, is that way off?  Try
>> just doing:
>> EXPLAIN ANALYZE SELECT incidentid FROM k_b WHERE id = 107;
>> EXPLAIN ANALYZE SELECT incidentid FROM k_r WHERE id = 94;

These should be fast queries.

John
=:->

Attachments:

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

view thread (18+ messages)  latest in thread

Message-ID: <42D6EB31.9040909@arbash-meinel.com>
Permalink:  ../42D6EB31.9040909@arbash-meinel.com/
Also on:    postgresql.org/message-id/42D6EB31.9040909@arbash-meinel.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: john@arbash-meinel.com, fbsd@drivefaster.net
  Subject: Re: slow joining very large table to smaller ones
  In-Reply-To: <42D6EB31.9040909@arbash-meinel.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