# 如何导出超过10,000条的限制？

**URL:** <https://meta.discourse.org/t/how-to-export-more-than-the-10-000-limit/249462>\
**Category:** Development\
**Tags:** data-explorer\
**Created:** [2022 年9 月 13 日 01:48 UTC](https://meta.discourse.org/t/how-to-export-more-than-the-10-000-limit/249462 "2022-09-13T01:48:59Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

作者： ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
发布日期： [2022 年9 月 14 日 13:35 UTC](https://meta.discourse.org/t/how-to-export-more-than-the-10-000-limit/249462/3 "2022-09-14T13:35:20Z")

</div>

一种测试方法是进入容器，编辑 /var/www/discourse/plugins/discourse-data-explorer/plugin.rb 并将 `QUERY_RESULT_MAX_LIMIT = 10000` 更改为 `QUERY_RESULT_MAX_LIMIT = 10000`，然后运行 `sv restart unicorn` 查看会发生什么。当然，不允许如此大的查询是有原因的；如果你对你的基础设施能够处理它有信心，或者不介意一点点不稳定，这可能会奏效。

如果世界没有爆炸，那么你可以在 `app.yml` 中添加一些_东西_，在每次重建时克隆插件后修改该文件。这可能会与使用 `docker_manager` 进行升级发生冲突。（你可以查看一些其他修改文件的模板来弄清楚_一些东西_可能是什么。）

@DonH 如果你需要那个查询很多次，而且只有一个，那么你可能想要一个插件以某种方式提供它。例如，它可以分块写入一个文件，你可以通过某个路径检索它。

---

_[View the full topic](https://meta.discourse.org/t/how-to-export-more-than-the-10-000-limit/249462)._
