0

I have collection with size about 30 MB (on server). It's fully mirrored with client. Tell me, why client uses hundreds of ram (400MB+) instead of 30 MB? I was searching for minimongo memory efficiency, but I found nothing, so I'm asking now

Ivan Nevostruev
  • 28,143
  • 8
  • 66
  • 82
dev1223
  • 1,148
  • 13
  • 28
  • Could you post code to support your claim? Something that would for example populate a collection with 30MB worth of data on the server. – Kyll Sep 11 '15 at 19:30
  • Probably because it's using a browser and browsers take up memory. Consider using `{ limit: }` on your publication for more memory efficiency – corvid Sep 11 '15 at 20:10
  • To determine the page overhead, subscribe to nothing and look at the memory usage then subscribe to everything and measure the difference. Browsers tend to be memory hogs. After a few hours a facebook page can easily grow over 1GB for example. – Michel Floyd Sep 11 '15 at 22:05

0 Answers0