# 最近的回复显示需要2秒

**URL:** https://meta.discourse.org/t/recent-replies-takes-2-seconds-to-display/365041
**Category:** Development
**Created:** [2025年五月6日 19:02 UTC](https://meta.discourse.org/t/recent-replies-takes-2-seconds-to-display/365041 "2025-05-06T19:02:34Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2025年五月7日 00:42 UTC](https://meta.discourse.org/t/recent-replies-takes-2-seconds-to-display/365041/3 "2025-05-07T00:42:08Z")

</div>

> [@David\_Ghost](#):
>
> 但内容显示平均需要 2 秒。

这就是他的问题。

我认为这是可以预期的，因为代码进行了多次 API 请求。  
它检索最新的帖子，然后为每个主题 ID（此处为 15 个）发出一个请求以检索类别名称。

目前，我不知道除了使用插件和进行自定义 SQL 查询之外，还有没有其他方法。

---

_[View the full topic](https://meta.discourse.org/t/recent-replies-takes-2-seconds-to-display/365041)._
