Strapi/Graphql 设置在后端抛出错误

问题描述 投票:0回答:0

构建或部署我的应用程序没有问题。但是,当尝试访问前端中的数据时,页面加载时间太长,最终导致内部服务器 500 错误。所附图片是我在后端得到的错误。

我正在使用最新版本的 Strapi (4.7.0) 和 GraphQL 来获取数据。

尽快寻求指导!

enter image description here enter image description here

我做了一些研究,得出的结论是它一次查询了太多数据,导致超时。我需要在我的系统中实现缓存吗? (redis等)

当我们启动并开始有更多流量时,我不能让服务器超时。

typescript graphql apollo strapi apollo-server
© www.soinside.com 2019 - 2024. All rights reserved.