pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedzero performance on query
3+ messages / 3 participants
[nested] [flat]
* zero performance on query
@ 2005-10-25 23:31 Sidar López Cruz <sidarlopez@hotmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Sidar López Cruz @ 2005-10-25 23:31 UTC (permalink / raw)
To: pgsql-admin
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/
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: zero performance on query
@ 2005-10-26 03:36 Jim C. Nasby <jnasby@pervasive.com>
parent: Sidar López Cruz <sidarlopez@hotmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Jim C. Nasby @ 2005-10-26 03:36 UTC (permalink / raw)
To: Sidar L?pez Cruz <sidarlopez@hotmail.com>; +Cc: pgsql-admin
We need the output of EXPLAIN ANALYZE, from both versions if possible.
Also, pgsql-performance would be a better list for this...
On Tue, Oct 25, 2005 at 05:31:22PM -0600, Sidar L?pez Cruz wrote:
> 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/
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>
--
Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: zero performance on query
@ 2005-10-26 17:59 Bruno Wolff III <bruno@wolff.to>
parent: Jim C. Nasby <jnasby@pervasive.com>
0 siblings, 0 replies; 3+ messages in thread
From: Bruno Wolff III @ 2005-10-26 17:59 UTC (permalink / raw)
To: Jim C. Nasby <jnasby@pervasive.com>; +Cc: Sidar L?pez Cruz <sidarlopez@hotmail.com>; pgsql-admin
On Tue, Oct 25, 2005 at 22:36:58 -0500,
"Jim C. Nasby" <jnasby@pervasive.com> wrote:
> We need the output of EXPLAIN ANALYZE, from both versions if possible.
Isn't that going to be a problem in this case since it seems unlikely
that EXPLAIN ANALYZE will finish in a reasonable amount of time?
>
> Also, pgsql-performance would be a better list for this...
>
> On Tue, Oct 25, 2005 at 05:31:22PM -0600, Sidar L?pez Cruz wrote:
> > 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/
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 5: don't forget to increase your free space map settings
> >
>
> --
> Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com
> Pervasive Software http://pervasive.com work: 512-231-6117
> vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2005-10-26 17:59 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-10-25 23:31 zero performance on query Sidar López Cruz <sidarlopez@hotmail.com>
2005-10-26 03:36 ` Jim C. Nasby <jnasby@pervasive.com>
2005-10-26 17:59 ` Bruno Wolff III <bruno@wolff.to>
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