Re: BUG #1697: Select getting slower on continously updating data

From: Bahadur Singh <bahadursingh(at)yahoo(dot)com>
To: Bruno Wolff III <bruno(at)wolff(dot)to>
Cc: pgsql-bugs(at)postgresql(dot)org, pgsql-novice(at)postgresql(dot)org, pgsql-performance(at)postgresql(dot)org
Subject: Re: BUG #1697: Select getting slower on continously updating data
Date: 2005-06-03 07:09:00
Message-ID: 20050603070900.62046.qmail@web50805.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-novice pgsql-performance

--- Bruno Wolff III <bruno(at)wolff(dot)to> wrote:

> This does not belong on the pgsql-bugs list. The
> pgsql-novice or
> pgsql-performance lists seem more appropiate. I have
> set followups
> to the pgsql-novice list.
>
> On Thu, Jun 02, 2005 at 12:05:00 +0100,
> Bahadur Singh <bahadursingh(at)yahoo(dot)com> wrote:
> >
> > Hello,
> >
> > I found situtation that, when I am selecting data
> from a table of 200
> > records, getting slower as I do continous update
> to the same existing data.
>
> You need to be vacuuming (and possibly analyzing)
> the table more often as the
> updates will leave dead rows in the table which will
> bloat the table size and
> slow down access, particularly sequential scans. If
> the updates modify the
> data value distributions significantly, then you
> will also need to
> reanalyze the table to help the planner make good
> decisions.
>

Many thanks for this tip !
But is this good idea to analyse/vacuuming the
database tables while updates are taking place..
Since, I update continuously say (100,000 ) times or
more the same data set.

This is the result of analyze command.

INFO: analyzing "public.salesarticle"
INFO: "salesarticle": scanned 3000 of 20850 pages,
containing 62 live rows and 134938 dead rows; 62 rows
in sample, 431 estimated total rows

Gesamtlaufzeit der Abfrage: 5531 ms.
Total Time Taken : 5531 ms.

Can you suggest me some clever way to so, because I
would prefer to do vaccumming while database is not
loaded with queries/transactions.

Regards
Bahadur


__________________________________
Discover Yahoo!
Find restaurants, movies, travel and more fun for the weekend. Check it out!
http://discover.yahoo.com/weekend.html

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message t-ishii 2005-06-03 08:20:51 Spam Re: Protected Mail Delivery
Previous Message Martin Pitt 2005-06-02 21:26:12 Re: More graceful handling of invalid log_*_stats conf in 7.4

Browse pgsql-novice by date

  From Date Subject
Next Message Bruno Wolff III 2005-06-03 14:49:51 Re: BUG #1697: Select getting slower on continously updating data
Previous Message tövis 2005-06-02 17:12:36 ecpg use or not

Browse pgsql-performance by date

  From Date Subject
Next Message Cosimo Streppone 2005-06-03 07:37:17 Re: Adaptec/LSI/?? RAID
Previous Message Martin Fandel 2005-06-03 07:06:41 Filesystem