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.




source
share