[Rpm-maint] [rpm-software-management/rpm] Vacuum the sqlite rpmdb if necessary (PR #3452)
AnonymousCoward128746
notifications at github.com
Mon Jan 13 19:33:22 UTC 2025
@pmatilai, this is great and I look forward to having it bundled with my distro of choice. As I wrote in https://github.com/rpm-software-management/dnf5/issues/2002, I've been using `rpm --rebuilddb` to do this. I'm not sure if it also does a VACCUM or something else, but I do know that rebuilding the DB with that command can take a while.
I'm concerned about introducing a sluggish cleanup operation into everyday package management operations, randomly. Users may respond negatively and perceive it as a regression or generally as bad performance by RPM.
Imagine for example that some automated flow (like right at the end of a docker image build) puts the db just at the tipping point. The next install the user issues to install the latest version of the `true` command, will send the system into a DB rebuild, and wtf might ensue.
Doesn't this make more sense as a cron job by distros? how do major distros usually handle periodic cleanup jobs like this?
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3452#issuecomment-2588022287
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3452/c2588022287 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250113/7e759658/attachment.htm>
More information about the Rpm-maint
mailing list