LiveSplit / LiveSplit/SpeedrunComSharp
Optimize Embeds away if the non-embeds are already queried
还没有人认领这个 Issue。
- 主要语言
- C#
- 星标
- 32
- 派生
- 11
- PR 合并指标
- 30 天内没有已合并 PR
描述
Embeds seem to be useful as they reduce the amount of API calls needed, but at the same time, they can cause issues with the current Caching implementation, as the elements might already be queried, but the embedded API call has not been done yet. So it causes more queries instead of less queries.
Simply stripping the ?embeds=... from the URL when comparing, doesn't work, because the embedded objects might not be queried yet. If there's more than 1 embedded object that it wants to access, it would cause more queries then. So this isn't really a good solution.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先跟踪当前的 Caching 实现,以及如何比较带有 ?embeds=... 的请求 URL。定义对于已查询的非嵌入对象和多个嵌入对象的行为,然后验证在不跳过必需嵌入数据的情况下避免冗余 API 调用。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp
- 领域
- api, backend
- Issue 类型
- 重构
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100