Does Meteor server caches subscription datasets?


#1

I read this article by @arunoda which mentions:

Meteor caches a copy of each client’s data in the server’s memory.

  1. Does memory here refers to RAM?
  2. Can you point me to some resources where I can dig more about this? I couldn’t find any documentation regarding this issue.

I also tried asking this on Stack Overflow here, but nothing much came out of it. And a similar question is left unanswered on the forums too.

Thanx :slight_smile:


#2

I believe you’re referring to the “merge box”, which is an in-memory copy of published documents attached to the connection. You’ll find references to it in

and an old (but still relevant) article here

https://meteorhacks.com/understanding-mergebox.html


#3

@robfallows I think this is the thing I was searching for. Got a keyword to dig more. Thanx


#4

If I remember correctly, then Meteor caches a copy of each unique subscription’s data in the server’s memory is more accurate (if it’s of any interest for you).

(My point is that multiple clients using identical subscriptions does not result in multiple cached datasets, but rather just one).


#5

@Peppe_LG Thanx for clearing. I had this concern.