<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Postgres 没报错，NodeBB 发帖却越来越慢]]></title><description><![CDATA[<p dir="auto">发帖从 1 秒变成 10 秒，NodeBB 日志没有异常。Postgres CPU 只有 20%，是不是数据库可以排除？</p>
]]></description><link>https://localaihub.com/topic/167/postgres-没报错-nodebb-发帖却越来越慢</link><generator>RSS for Node</generator><lastBuildDate>Wed, 03 Jun 2026 18:50:52 GMT</lastBuildDate><atom:link href="https://localaihub.com/topic/167.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 12 May 2026 00:40:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Postgres 没报错，NodeBB 发帖却越来越慢 on Tue, 12 May 2026 20:28:00 GMT]]></title><description><![CDATA[<p dir="auto">复盘重点写“数据库没报错不等于数据库没问题”，要有慢查询基线。</p>
]]></description><link>https://localaihub.com/post/1770</link><guid isPermaLink="true">https://localaihub.com/post/1770</guid><dc:creator><![CDATA[Grace]]></dc:creator><pubDate>Tue, 12 May 2026 20:28:00 GMT</pubDate></item><item><title><![CDATA[Reply to Postgres 没报错，NodeBB 发帖却越来越慢 on Tue, 12 May 2026 19:47:00 GMT]]></title><description><![CDATA[<p dir="auto">禁掉热门插件后发帖 900ms。Postgres 也回落了。</p>
]]></description><link>https://localaihub.com/post/1769</link><guid isPermaLink="true">https://localaihub.com/post/1769</guid><dc:creator><![CDATA[阿宁]]></dc:creator><pubDate>Tue, 12 May 2026 19:47:00 GMT</pubDate></item><item><title><![CDATA[Reply to Postgres 没报错，NodeBB 发帖却越来越慢 on Tue, 12 May 2026 19:31:00 GMT]]></title><description><![CDATA[<p dir="auto">那就看插件和排序字段。NodeBB 主逻辑没错，插件可能改变了查询形态。</p>
]]></description><link>https://localaihub.com/post/1768</link><guid isPermaLink="true">https://localaihub.com/post/1768</guid><dc:creator><![CDATA[nora]]></dc:creator><pubDate>Tue, 12 May 2026 19:31:00 GMT</pubDate></item><item><title><![CDATA[Reply to Postgres 没报错，NodeBB 发帖却越来越慢 on Tue, 12 May 2026 17:05:00 GMT]]></title><description><![CDATA[<p dir="auto">抓到了一个 8 秒查询，来自首页热门主题排序。</p>
]]></description><link>https://localaihub.com/post/1767</link><guid isPermaLink="true">https://localaihub.com/post/1767</guid><dc:creator><![CDATA[阿宁]]></dc:creator><pubDate>Tue, 12 May 2026 17:05:00 GMT</pubDate></item><item><title><![CDATA[Reply to Postgres 没报错，NodeBB 发帖却越来越慢 on Tue, 12 May 2026 14:14:00 GMT]]></title><description><![CDATA[<p dir="auto">不要先重启数据库。先抓慢查询，开一个短窗口就够，别把敏感参数全打进日志。</p>
]]></description><link>https://localaihub.com/post/1766</link><guid isPermaLink="true">https://localaihub.com/post/1766</guid><dc:creator><![CDATA[melo]]></dc:creator><pubDate>Tue, 12 May 2026 14:14:00 GMT</pubDate></item><item><title><![CDATA[Reply to Postgres 没报错，NodeBB 发帖却越来越慢 on Tue, 12 May 2026 11:58:00 GMT]]></title><description><![CDATA[<p dir="auto">我们上次是搜索插件自己建的字段没索引，管理后台某个列表一打开就扫表。</p>
]]></description><link>https://localaihub.com/post/1765</link><guid isPermaLink="true">https://localaihub.com/post/1765</guid><dc:creator><![CDATA[半截薯条]]></dc:creator><pubDate>Tue, 12 May 2026 11:58:00 GMT</pubDate></item><item><title><![CDATA[Reply to Postgres 没报错，NodeBB 发帖却越来越慢 on Tue, 12 May 2026 11:42:00 GMT]]></title><description><![CDATA[<p dir="auto">查 <code>n_dead_tup</code> 和表大小变化。慢性变慢常常不是瞬间故障，是维护任务没跟上增长。</p>
]]></description><link>https://localaihub.com/post/1764</link><guid isPermaLink="true">https://localaihub.com/post/1764</guid><dc:creator><![CDATA[林小北]]></dc:creator><pubDate>Tue, 12 May 2026 11:42:00 GMT</pubDate></item><item><title><![CDATA[Reply to Postgres 没报错，NodeBB 发帖却越来越慢 on Tue, 12 May 2026 09:34:00 GMT]]></title><description><![CDATA[<p dir="auto">autovacuum 没动静，表膨胀我没看过。</p>
]]></description><link>https://localaihub.com/post/1763</link><guid isPermaLink="true">https://localaihub.com/post/1763</guid><dc:creator><![CDATA[阿宁]]></dc:creator><pubDate>Tue, 12 May 2026 09:34:00 GMT</pubDate></item><item><title><![CDATA[Reply to Postgres 没报错，NodeBB 发帖却越来越慢 on Tue, 12 May 2026 07:12:00 GMT]]></title><description><![CDATA[<p dir="auto">还有 autovacuum。帖子表更新频繁，死元组多了，查询计划会慢慢变差。</p>
]]></description><link>https://localaihub.com/post/1762</link><guid isPermaLink="true">https://localaihub.com/post/1762</guid><dc:creator><![CDATA[rootless]]></dc:creator><pubDate>Tue, 12 May 2026 07:12:00 GMT</pubDate></item><item><title><![CDATA[Reply to Postgres 没报错，NodeBB 发帖却越来越慢 on Tue, 12 May 2026 04:05:00 GMT]]></title><description><![CDATA[<p dir="auto">看等待事件。是 IO、lock、client read，还是 transaction id？</p>
]]></description><link>https://localaihub.com/post/1761</link><guid isPermaLink="true">https://localaihub.com/post/1761</guid><dc:creator><![CDATA[小周]]></dc:creator><pubDate>Tue, 12 May 2026 04:05:00 GMT</pubDate></item><item><title><![CDATA[Reply to Postgres 没报错，NodeBB 发帖却越来越慢 on Tue, 12 May 2026 03:06:00 GMT]]></title><description><![CDATA[<p dir="auto"><code>pg_stat_activity</code> 里有很多 active，query 都是 topics 和 posts。</p>
]]></description><link>https://localaihub.com/post/1760</link><guid isPermaLink="true">https://localaihub.com/post/1760</guid><dc:creator><![CDATA[阿宁]]></dc:creator><pubDate>Tue, 12 May 2026 03:06:00 GMT</pubDate></item><item><title><![CDATA[Reply to Postgres 没报错，NodeBB 发帖却越来越慢 on Tue, 12 May 2026 01:49:00 GMT]]></title><description><![CDATA[<p dir="auto">不能。数据库慢不一定 CPU 高。锁等待、连接等待、磁盘 fsync、缺索引都会低 CPU 但高延迟。</p>
]]></description><link>https://localaihub.com/post/1759</link><guid isPermaLink="true">https://localaihub.com/post/1759</guid><dc:creator><![CDATA[Grace]]></dc:creator><pubDate>Tue, 12 May 2026 01:49:00 GMT</pubDate></item></channel></rss>