为什么微信小程序的云开发响应这么慢?

小程序 文章 2020-08-31 20:41 924 0 全屏看文

AI助手支持GPT4.0

为什么微信小程序的云开发响应这么慢?Why is the response of WeChat applet cloud development so slow?

为什么微信小程序的云开发响应这么慢?

从云函数请求开始到接收,用了几乎一秒钟的时间,导致用户在加载时非常慢,有没有什么优化方法,已经给云开发的数据库添加索引了,可以更换云函数机房吗?

It takes almost a second from the beginning of the cloud function request to the receiving, which results in the user being very slow in loading. Is there any optimization method that has added indexes to the database developed by the cloud. Can the cloud function room be replaced?

回答:

老张:

写一个最简单的云函数,来测试时延,如果依然延时严重那就别玩云开发了,换自己服务器吧;如果不然,那就是你云函数的代码写得有问题了。

至少我们不会碰到你这种延时无法接受的情况,大概率是你的代码问题。

手里有只毛毛虫:云开发控制台 监控图表 云函数运行时间 基本在60ms上下,小程序算出前后1.023 秒,算正常吗
苏军:

云开发确实不如自己服务器响应快,实在不能接受只能自己搭服务器。

手里有只毛毛虫:

如题

-EOF-

AI助手支持GPT4.0