On Tue, May 31, 2022 at 11:14 AM Praneel Devisetty <devisettypraneel@xxxxxxxxx> wrote:
Hi,We are trying to reindex 600k tables in a single database of size 2.7TBusing reindexdb utility in a shell scriptreindexdb -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