fix: 性能优化,首页下拉更新,实测6秒左右,稍慢 #1053

This commit is contained in:
Tim
2026-01-16 16:45:07 +08:00
parent 09f1435e33
commit ef39b5fedf
7 changed files with 193 additions and 32 deletions

View File

@@ -0,0 +1,4 @@
-- Backfill last_reply_at for posts without comments to preserve latest-reply ordering
UPDATE posts
SET last_reply_at = created_at
WHERE last_reply_at IS NULL;