Paid Meteor Subscription

I have a performance issue with Meteor subscriptions, and the time taken to subscribe to the subscription will be ready.

I subscribe to three collections, and the Ready event subscription is not called until about 4 seconds later (they all take exactly the same time to return an onReady call).

Registration on the server shows that the results are returned from the database in just a few milliseconds. On the server, I run localhost, so network latency / speed is not a problem (I get the same problem when booting from an intermediate server).

As far as I can tell, I donโ€™t have a lock code, and there is a lot of free time on the timeline, so I donโ€™t know what causes this long delay.

The collections of user data and channels are quite small, and the graphs are about 1 mb (I'm not sure how to get the exact size, but when I register and reduce json to 1mb), but when I test, only a small number of objects return (5, and not usual 40) the load is still slow (5 takes ~ 2000 ms, 40 takes ~ 3000 ms)

Any suggestions, tips or greetings are appreciated.

Timelines - user data, channels and schedules - this is the subscription time (from subscribing to onReady)

Network timeline during boot

Kadira's response time bar

Some statistics from my Mongo panel, although they return data to the server in milliseconds, so it seems like no problem

+4
source share

Source: https://habr.com/ru/post/1626267/


All Articles