From: Sidar López Cruz <sidarlopez@hotmail.com>
To: pgsql-admin@postgresql.org
Subject: zero performance on query
Date: Tue, 25 Oct 2005 17:31:22 -0600
Message-ID: <BAY23-F708890ED6761AAE538B2CCE760@phx.gbl> (raw)
what happend with postgresql 8.1b4 performance on query?
look at this:
select count(*) from fotos where archivo not in (select archivo from
archivos)
Aggregate (cost=4899037992.36..4899037992.37 rows=1 width=0)
-> Seq Scan on fotos (cost=22598.78..4899037338.07 rows=261716 width=0)
Filter: (NOT (subplan))
SubPlan
-> Materialize (cost=22598.78..39304.22 rows=805344 width=58)
-> Seq Scan on archivos (cost=0.00..13141.44 rows=805344
width=58)
I WILL DIE WAITING FOR QUERY RESPONSE !!!
--
CREATE TABLE archivos ( archivo varchar(20)) WITHOUT OIDS;
CREATE INDEX archivos_archivo_idx ON archivos USING btree(archivo);
~800000 rows
--
CREATE TABLE fotos
(
cedula varchar(20),
nombre varchar(100),
apellido1 varchar(100),
apellido2 varchar(100),
archivo varchar(20)
) WITHOUT OIDS;
CREATE INDEX fotos_archivo_idx ON fotos USING btree (archivo);
CREATE INDEX fotos_cedula_idx ON fotos USING btree (cedula);
~500000 rows
_________________________________________________________________
Charla con tus amigos en línea mediante MSN Messenger:
http://messenger.latam.msn.com/
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-admin@postgresql.org
Cc: sidarlopez@hotmail.com
Subject: Re: zero performance on query
In-Reply-To: <BAY23-F708890ED6761AAE538B2CCE760@phx.gbl>
References: <BAY23-F708890ED6761AAE538B2CCE760@phx.gbl>
* 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