Apollo客户端慢速响应速度

发布于 2025-02-09 14:58:41 字数 487 浏览 2 评论 0原文

阿波罗缓存花费1.2s来解析结果并将其放入缓存中:

我尝试过的事情:

  • keyfields:false要避免归一化
  • fetchpolicy:“ no-cache”
  • pausimmmutableReSults:true
  • CanonizerEsults:false

打开所有这些,应允许阿波罗无需任何其他处理即可将对象直接转储到缓存中。有什么方法可以实现这一目标吗?看起来阿波罗正试图深入克隆这个巨大的物体。

The Apollo cache spends 1.2s parsing the result and putting it into the cache:
enter image description here

Things I've tried:

  • keyFields: false to avoid normalisation
  • fetchPolicy: "no-cache"
  • assumeImmutableResults: true
  • canonizeResults: false

Turning all this on should allow Apollo to dump the object directly into the cache without any further processing. Is there any way to achieve this? It looks like Apollo is trying to deep clone this huge object.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文