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

R: R: slow seqscan after vacuum analize

From: "Edoardo Ceccarelli" <eddy(at)expot(dot)it>
To: "'Sam Barnett-Cormack'" <s(dot)barnett-cormack(at)lancaster(dot)ac(dot)uk>
Cc: "'scott(dot)marlowe'" <scott(dot)marlowe(at)ihs(dot)com>,<pgsql-admin(at)postgresql(dot)org>
Subject: R: R: slow seqscan after vacuum analize
Date: 2004-02-05 02:10:13
Message-ID: 2s28b9$kqpdm@mailr-1.tiscali.it (view raw or flat)
Thread:
Lists: pgsql-admin
> > AFTER (actual db)
> > portaportese=# explain analyze SELECT * FROM utente where 
> luogorilasciodoc='ciao';
> >                                                 QUERY PLAN
> >
> > 
> ----------------------------------------------------------------------
> > ----------------
> > --------------------
> >  Seq Scan on utente  (cost=0.00..92174.50 rows=3 width=724) (actual
> > time=705.41..6458.19 rows=15 loops=1)
> >    Filter: (luogorilasciodoc = 'ciao'::bpchar)  Total 
> runtime: 6458.29 
> > msec
> > (3 rows

After a VACUUM FULL ANALYZE:

portaportese=# explain analyze SELECT * FROM utente where luogorilasciodoc='ciao';
                                                QUERY PLAN

--------------------------------------------------------------------------------------
--------------------
 Seq Scan on utente  (cost=0.00..41329.21 rows=154 width=724) (actual
time=91.61..751.28 rows=15 loops=1)
   Filter: (luogorilasciodoc = 'ciao'::bpchar)
 Total runtime: 751.35 msec


Things are better now! :) it surely was because i have used the normal vacuum...
 



In response to

pgsql-admin by date

Next:From: David F. SkollDate: 2004-02-05 02:17:02
Subject: Re: R: slow seqscan after vacuum analize
Previous:From: Edoardo CeccarelliDate: 2004-02-05 01:06:53
Subject: R: R: slow seqscan after vacuum analize

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