Slow performance on field ProjectType.packages if github/npm metadata has expired
未关闭
bug
- 主要语言
- Vue
- 星标
- 207
- 派生
- 21
- PR 合并指标
- 30 天内没有已合并 PR
描述
**Describe the bug**
When the metadata is considered expired (currently after 6 hours), the resolver fetches new data from both NPM and GitHub APIs, slowing down the whole query. This work should be offloaded to a parallel "job" and old data shall be returned immediately unless there isn't any metadata (freshly added package).
**To Reproduce**
Steps to reproduce the behavior:
1. Wait 6 hours
2. Refresh a project type view page
**Expected behavior**
Lightning fast loading :zap:
**Screenshots**
Here we can see a 1.7s long example on Apollo Engine:

贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。