Skip site navigation (1) Skip section navigation (2)

Re: slow deletes on pgsql 7.4

From: "Junaili Lie" <junaili(at)gmail(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: slow deletes on pgsql 7.4
Date: 2006-04-26 14:27:13
Message-ID: 8d04ce990604260727r65d009d6pef436465701c4203@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-performance
It was on my first email.
Here it is again:
MONSOON=# explain delete from scenario where id='1099';
                                  QUERY PLAN
------------------------------------------------------------------------------
 Index Scan using scenario_pkey on scenario  (cost=0.00..3.14 rows=1
width=6)
   Index Cond: (id = 1099::bigint)
(2 rows)

MONSOON=# explain delete from scenario where id='1023';
                                  QUERY PLAN
------------------------------------------------------------------------------
 Index Scan using scenario_pkey on scenario  (cost=0.00..3.14 rows=1
width=6)
   Index Cond: (id = 1023::bigint)
(2 rows)

Thanks,
J


On 4/25/06, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> "Junaili Lie" <junaili(at)gmail(dot)com> writes:
> > ie. delete from scenario where id=3D'1023' is very fast, but delete from
> > scenario where id=3D'1099' is running forever.
>
> What does EXPLAIN show for each of those cases?
>
>                        regards, tom lane
>

In response to

pgsql-performance by date

Next:From: David BorehamDate: 2006-04-26 14:43:25
Subject: Re: Large (8M) cache vs. dual-core CPUs
Previous:From: William YuDate: 2006-04-26 14:19:38
Subject: Re: Large (8M) cache vs. dual-core CPUs

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group