Database schema changes
還沒有人認領這個 Issue。
評估
研究方向
Start with docs/setup.sql and reproduce the reported SELECT against a large items table to understand the current schema and query cost. Review the feeds, items, and subscriptions definitions, then trace the application code that uses feedUrl; done means the integer feedId migration and related queries remain synchronized across all three tables.
由索引模型根據 Issue 內容生成。
描述
Seeing that a database with millions of rows in the items table, can get queries to slow down, specifically this one:
SELECT * FROM items WHERE flDeleted = FALSE AND feedUrl IN (SELECT feedUrl FROM subscriptions WHERE listName='dave') ORDER BY pubDate DESC LIMIT 175;
Which can take ~10 seconds to load, I propose we switch from using feedUrl as the primary key to an integer based key, which will help speed up the query significantly. Testing locally, the same query took about ~20ms after the switch.
Maybe for such a big change, we might as well review the setup.sql file. The following tables use feedUrl as primary key and should be changed:
- feeds
- items
- subscriptions
But this will also involve code changes to keep in sync the new feedId with the current feedUrl and querying feedId instead.
- 主要語言
- HTML
- 星號
- 11
- 分支
- 4
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
scripting/feedlandInstall 的其他 Issue
-
難度 4/5 3-5 天 新手友好度 55/100
scripting/feedlandInstall#79 · 4 則留言 · 2 個 reaction ·
-
難度 2/5 1-3 小時 新手友好度 55/100
scripting/feedlandInstall#77 · 3 則留言 ·
-
難度 4/5 3-5 天 新手友好度 35/100
scripting/feedlandInstall#76 · 3 則留言 ·
-
難度 1/5 1 小時以內 新手友好度 20/100
scripting/feedlandInstall#74 · 3 則留言 ·
-
難度 4/5 3-5 天 新手友好度 20/100
scripting/feedlandInstall#73 · 1 則留言 ·
查看 scripting/feedlandInstall 的全部 Issue
相似的 Issue
-
pending triage
難度 2/5 1-3 小時 新手友好度 65/100
維護者通常 1 天內回覆
-
bug doc-audit
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 75/100
github/github-mcp-server#3581 ·
維護者通常 2 天內回覆
-
agent-review-finding chore
難度 1/5 1 小時以內 新手友好度 85/100
jordansmall/spindrift#6033 ·
維護者通常 1 天內回覆
-
area-domain-modeling p1-recommended technical-debt
難度 2/5 1-3 小時 新手友好度 80/100
維護者通常 1 天內回覆