-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add maintenance vacuum #916
Comments
I tried vacuum on my 3.5GB homeserver.db, which took about 45minutes to finish, and in the end it was still 3.3GB, so it seems vacuum has no big effect. Maybe we can add some more maintenance, that shrinks the database file better? I checked and found, that there are 28.886.226 entries in |
@erikjohnston has been working on precisely this.
|
I created a gist file here: https://gist.github.com/rubo77/458eb4808d665e619feeaf556476f73f But I need some more help |
#911 added this so is there a |
FWIW, some databases may do additional work during a
Maybe it would be good idea to add a note to postgres.rst recommending automatic vacuuming in |
postgres manages its own vacuums; it's not our job to sort it out. |
|
On a configurable time, once a week the homeserver.db should go down for maintenance to do a VACUUM to minimize the database size on the server.
It would be cool, if there was a maintenance mode, so the users see, they just have to wait some minutes.
The text was updated successfully, but these errors were encountered: