流星订阅就绪表现

时间:2016-01-27 23:18:38

标签: performance mongodb meteor

我的Meteor订阅存在性能问题,订阅订阅的时间已经准备就绪。

我订阅了三个集合,并且订阅onReady事件直到大约4秒钟才被调用(它们都在完全相同的时间内返回onReady)。

登录服务器显示结果仅在几毫秒内从数据库返回。服务器我正在运行localhost,因此网络延迟/速度不是问题(从登台服务器加载时我遇到同样的问题)。

据我所知,我没有任何阻止代码,时间线显示大量空闲时间,所以我不知道导致这种长时间延迟的原因。

用户数据和频道集合非常小,时间表大约为1mb(我不知道如何获得确切的大小,但是当我记录并缩小json时它的1mb),但是当我测试只返回少量物体(5,而不是通常的40)时,负载仍然很慢(5需要〜2000ms,40需要~3000ms)

任何建议,提示或陷阱都会受到赞赏。

Timelines — the userData, channels and schedules are the subscriptions time (from subscribe to onReady)

Network timeline in the load period

Kadira response time dashboard

Some stats from my Mongo dashboard, although these are returning data to the server in a matter of milliseconds, so doesn't seem to be the problem

0 个答案:

没有答案
相关问题