Auto Vacuum optimisation
Thread notes
1 note#feature#moderate#enhancement
hackorum-bot#feature#moderate#enhancement
@global #feature #moderate #enhancement
HI hackers and japin li
There was an earlier discussion about auto vacuum optimisation(
/messages/by-id/6a2ac9b7-6535-4bb1-8274-0647f7c31c82@dalibo.com),I
referring to the discussion in there, I implemented a parameter selection
triggering the calculation of AUTO VACUUM,This is my first patch for the
community.Hoping for support from the experts
Attachments:
0001-Add-guc-to-optimize-the-autovacuum-tigger-algorithm.patchapplication/octet-stream; name=0001-Add-guc-to-optimize-the-autovacuum-tigger-algorithm.patchDownload+57-9
HI hackers
These are algorithmic mathematical graphs,By default, vacuum will not be
triggered frequently.Looking at the images the algorithms for pow and sqrt
are close, do we want to cancel one of the algorithms?
log2
[image: image.png]
sqrt
[image: image.png]
pow
[image: image.png]
wenhui qiu <qiuwenhuifx@gmail.com> 于2024年11月18日周一 18:00写道:
Show quoted text
HI hackers and japin li
There was an earlier discussion about auto vacuum optimisation(/messages/by-id/6a2ac9b7-6535-4bb1-8274-0647f7c31c82@dalibo.com),I
referring to the discussion in there, I implemented a parameter selection
triggering the calculation of AUTO VACUUM,This is my first patch for the
community.Hoping for support from the experts
On Mon, 18 Nov 2024 at 18:20, wenhui qiu <qiuwenhuifx@gmail.com> wrote:
HI hackers
These are algorithmic mathematical graphs,By default, vacuum will not be triggered frequently.Looking at the images
the algorithms for pow and sqrt are close, do we want to cancel one of the algorithms?log2
image.pngsqrt
image.png
pow
image.png
Sorry for the late reply.
Did you forget to upload the pictures?
There was an earlier discussion about auto vacuum optimisation(
/messages/by-id/6a2ac9b7-6535-4bb1-8274-0647f7c31c82@dalibo.com),I referring to the
discussion in there, I implemented a parameter selection triggering the calculation of AUTO VACUUM,This is my first
patch for the community.Hoping for support from the experts
I think this is helpful.
One of our customers had large tables that were frequently updated, and their
global configuration did not permit timely VACUUM operations on those tables.
As a result, they had to adjust the vacuum settings for those specific tables,
which unintentionally increased their maintenance burden.
However, I'm not sure we need so many autovacuum algorithms here since it makes
the choice harder (maybe).
--
Regrads,
Japin Li
HI Japin Li
Thank you for you reply, Do you think that removing the log2 algorithm
because it will be more frequent,I think sql server chose sqrt algorithm
after their long-term verification, I think we need to retain sqrt
algorithm,The relevant documents are here(
https://learn.microsoft.com/en-us/sql/relational-databases/statistics/statistics?view=sql-server-ver16),I
will provide a new patch later with your reply
Thanks
Japin Li <japinli@hotmail.com> 于2024年11月26日周二 21:26写道:
Show quoted text
On Mon, 18 Nov 2024 at 18:20, wenhui qiu <qiuwenhuifx@gmail.com> wrote:
HI hackers
These are algorithmic mathematical graphs,By default, vacuum will notbe triggered frequently.Looking at the images
the algorithms for pow and sqrt are close, do we want to cancel one of
the algorithms?
log2
image.pngsqrt
image.png
pow
image.pngSorry for the late reply.
Did you forget to upload the pictures?
There was an earlier discussion about auto vacuum optimisation(
/messages/by-id/6a2ac9b7-6535-4bb1-8274-0647f7c31c82@dalibo.com),I
referring to thediscussion in there, I implemented a parameter selection triggering the
calculation of AUTO VACUUM,This is my first
patch for the community.Hoping for support from the experts
I think this is helpful.
One of our customers had large tables that were frequently updated, and
their
global configuration did not permit timely VACUUM operations on those
tables.
As a result, they had to adjust the vacuum settings for those specific
tables,
which unintentionally increased their maintenance burden.However, I'm not sure we need so many autovacuum algorithms here since it
makes
the choice harder (maybe).--
Regrads,
Japin Li
On Wed, 27 Nov 2024 at 15:51, wenhui qiu <qiuwenhuifx@gmail.com> wrote:
HI Japin Li
Thank you for you reply, Do you think that removing the log2 algorithm because it will be more frequent,I think sql
server chose sqrt algorithm after their long-term verification, I think we need to retain sqrt algorithm,The relevant
documents are here(
https://learn.microsoft.com/en-us/sql/relational-databases/statistics/statistics?view=sql-server-ver16),I will provide a
new patch later with your reply
Worth a try.
However, I don't think we need to based on {vac,anl}_scale_factor when using
the sqrt algorithm.
--
Regrads,
Japin Li
Hi Japin
Worth a try.
However, I don't think we need to based on {vac,anl}_scale_factor when
using
the sqrt algorithm.
Here a new path, I removed the log2 algorithm and the debug2 log and the
enumeration type is also kept consistent, based on {vac,anl}_scale_factor
when using the sqrt algorithm ,The main purpose is also to give DBAs the
flexibility to make small adjustments,Mainly referencing another discussion
as well, trying to stay in line with them
On Thu, Nov 28, 2024 at 1:46 PM Japin Li <japinli@hotmail.com> wrote:
Show quoted text
On Wed, 27 Nov 2024 at 15:51, wenhui qiu <qiuwenhuifx@gmail.com> wrote:
HI Japin Li
Thank you for you reply, Do you think that removing the log2algorithm because it will be more frequent,I think sql
server chose sqrt algorithm after their long-term verification, I think
we need to retain sqrt algorithm,The relevant
documents are here(
https://learn.microsoft.com/en-us/sql/relational-databases/statistics/statistics?view=sql-server-ver16),I
will provide anew patch later with your reply
Worth a try.
However, I don't think we need to based on {vac,anl}_scale_factor when
using
the sqrt algorithm.--
Regrads,
Japin Li