Re: REINDEXdb performance degrading gradually PG13.4 - Mailing list pgsql-performance

From Jeff Janes
Subject Re: REINDEXdb performance degrading gradually PG13.4
Date
Msg-id CAMkU=1wR9Er2me8u=TL0vGNpMbig90bGryzzEXCpZs2y-apW3Q@mail.gmail.com
Whole thread Raw
In response to REINDEXdb performance degrading gradually PG13.4  (Praneel Devisetty <devisettypraneel@gmail.com>)
List pgsql-performance


On Tue, May 31, 2022 at 11:14 AM Praneel Devisetty <devisettypraneel@gmail.com> wrote:

Hi,

We are trying to reindex 600k tables in a single database  of size 2.7TB
using reindexdb utility in a shell script
reindexdb -v -d $dbname -h $hostname -U tkcsowner --concurrently -j $parallel -S $schema


What is the value of $parallel?  Are all the tables in the same schema?
 
Initially it was processing 1000 tables per minute. Performance is gradually dropping and now after 24 hr it was processing 90 tables per minute.

I can't even get remotely close to 1000 per minute with those options, even with only 100000 single-index tables with all of them being empty.  Are you sure that isn't 1000 per hour?

Using --concurrently really hits the stats system hard (I'm not sure why).   Could you just omit that?  If it is running at 1000 per minute or even per hour, does it really matter if the table is locked for as long as it takes to reindex?

Cheers,

Jeff

pgsql-performance by date:

Previous
From: Praneel Devisetty
Date:
Subject: Re: REINDEXdb performance degrading gradually PG13.4
Next
From: Jeff Janes
Date:
Subject: Re: rows selectivity overestimate for @> operator for arrays