我就纳闷了,我就是查询一个集合内的所有记录,之前一直好好的,这两天突然用不了,官方解释说什么数据库同时并发链接数超了,我就一个用户登录,哪来的超,也邮件申请提升了,回复说什么根据需求调整,能不能有人出来解释解释
返回结果
errCode: -501004 exceed concurrent request limit | errMsg: [LimitExceeded.NoValidConnection] Connection num overrun. Please improve specifications, but if the problem cannot be solved, contact us.;
日志
Error: errCode: -501004 exceed concurrent request limit | errMsg: [LimitExceeded.NoValidConnection] Connection num overrun. Please improve specifications, but if the problem cannot be solved, contact us.;
at new CloudSDKError (/var/user/node_modules/wx-server-sdk/index.js:2577:28)
at Object.returnAsCloudSDKError (/var/user/node_modules/wx-server-sdk/index.js:2629:16)
at Object.checkError (/var/user/node_modules/wx-server-sdk/index.js:1261:23)
at Query.<anonymous> (/var/user/node_modules/wx-server-sdk/index.js:1325:41)
at step (/var/user/node_modules/tslib/tslib.js:133:27)
at Object.next (/var/user/node_modules/tslib/tslib.js:114:57)
at fulfilled (/var/user/node_modules/tslib/tslib.js:104:62)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
END RequestId: 7444f5c9-5de5-11e9-9282-525400235f2a
Report RequestId: 7444f5c9-5de5-11e9-9282-525400235f2a Duration:302.236ms Memory:256MB MaxMemoryUsed:15.0352MB
{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"Error: errCode: -501004 exceed concurrent request limit | errMsg: [LimitExceeded.NoValidConnection] Connection num overrun. Please improve specifications, but if the problem cannot be solved, contact us.; \n at Object.returnAsCloudSDKError (/var/user/node_modules/wx-server-sdk/index.js:7814:16)\n at Object.checkError (/var/user/node_modules/wx-server-sdk/index.js:1411:23)\n at Promise (/var/user/node_modules/wx-server-sdk/index.js:1199:33)\n at process._tickCallback (internal/process/next_tick.js:68:7)"}
日志
现在应该都没有问题了吧?再遇到这方面的问题,可以加我微信:jishuzu360,帮你一对一排查并解决
同样遇到这个问题,请问后来如何解决这个问题了?
查询集合内所有记录是不是用了Promise.all + reduce方式进行的?这个也相当于并发连接