# 重建百万级上传数据耗时太长？试试添加这个模板！

**URL:** <https://meta.discourse.org/t/rebuilds-taking-a-long-time-with-a-large-number-of-uploads-chown-performance/410278>\
**Category:** Self-hosting\
**Created:** [2026年八月17日 21:13 UTC](https://meta.discourse.org/t/rebuilds-taking-a-long-time-with-a-large-number-of-uploads-chown-performance/410278 "2026-08-17T21:13:29Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [2026年八月18日 18:58 UTC](https://meta.discourse.org/t/rebuilds-taking-a-long-time-with-a-large-number-of-uploads-chown-performance/410278/5 "2026-08-18T18:58:41Z")

</div>

好的，请继续！

我已经把这条内容从 #Wiki 移回了 #Support > Self-hosting，因为这并不是我们希望大家手动处理的一种模式。如果上游模板中有一些安全的性能优化可以做，那就做吧！

我不认为我们应该覆盖系统级的 `chown`/`chmod` 可执行文件。但也许可以直接使用相应的 `find` 命令？

---

_[View the full topic](https://meta.discourse.org/t/rebuilds-taking-a-long-time-with-a-large-number-of-uploads-chown-performance/410278)._
