# Update took quite long due to Vacuum

**URL:** <https://meta.discourse.org/t/update-took-quite-long-due-to-vacuum/56203>\
**Category:** Self-hosting\
**Created:** [2017 年1 月 23 日 11:37 UTC](https://meta.discourse.org/t/update-took-quite-long-due-to-vacuum/56203 "2017-01-23T11:37:15Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

作者： ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)\
发布日期： [2017 年1 月 23 日 22:10 UTC](https://meta.discourse.org/t/update-took-quite-long-due-to-vacuum/56203/3 "2017-01-23T22:10:31Z")

</div>

Discourse occasionally runs a VACUUM on the database during migrations to make sure space is being reclaimed (see [the `db:migrate` job in db.rake](https://github.com/discourse/discourse/blob/master/lib/tasks/db.rake#L7)). You can disable this behaviour by setting [the `vacuum_db_days` site setting to 0](https://github.com/discourse/discourse/blob/master/lib/tasks/db.rake#L12).

---

_[View the full topic](https://meta.discourse.org/t/update-took-quite-long-due-to-vacuum/56203)._
