HelloZeroNet / HelloZeroNet/ZeroNet
Using real database instead of using `.json` files as database
未关闭
enhancement
- 主要语言
- JavaScript
- 星标
- 18.8k
- 派生
- 2.3k
- PR 合并指标
- 30 天内没有已合并 PR
描述
Advanced of #1894
I found a performance bottleneck: `atomicWrite` of `sites.json`.
This is significant when seeding many sites + sites frequency update.
When using `.json` files as database, if one row updates, whole file need to rewrite.
When using real database, if one row updates, only related disk sector need to rewrite.
贡献指南
这个仓库没有索引到贡献指南
调研方向
该 issue 只提到 atomicWrite 和 sites.json,没有提供仓库文件或测试。首先定位这条写入路径,以及负责播种和频率更新的调用方;在实现之前明确数据库选择、迁移范围和可衡量的完成标准。
由索引模型根据 Issue 内容生成。
评估
- 领域
- database
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 20/100