Open JulianKingman opened 7 years ago
I have a similar issue. My dataset only contains a few documents (less than 100). In my web app the subscription takes 0.011s according to mongo-cli but in my mobile app it takes up to 10s. Any other subscription even with a larger dataset goes faster.
Any idea ?
Update: I recently found out that this only occurs when Debug JS Remotely
is activated. A workaround is just not to activate it and debug via react-native log-android
or react-native log-ios
. Still, I prefer to debug in the browser console for comfort so if anyone got a clue to avoid this performance issue it would be greatly appreciated.
OK, bear with me; I am retrieving a collection of 10,000 docs, which I realize is a lot, but I'm trying to see if I can get it to work acceptably.
In the web interface, my subscription loads and is ready in 2-12 seconds, depending when I start counting (page load or subscription start/end time, page load being relevant because SSR passes the initial docs). This is acceptable.
On the mobile device, subscriptions take 30-70 seconds, which is obviously way too long.
Any ideas what might be causing this, or where to look? Some notes: