javascript - would minimongo cache across subscriptions? -
if have subscription inside tracker.autorun()
, publish takes variable selector, means every time, return may vary, minimongo cache docs returned publications? or each time, clears documents , preserve returned docs previous publication?
meteor clever enough keep track of current document set each client has each publisher. when publisher reruns, knows send difference between sets. let's use following sequence example:
- subscribe posts:
a,b,c
- rerun subscription posts
b,c,d
- server sends
removed
messagea
,added
messaged
.
note not happen if stopped subscription prior rerunning it.
Comments
Post a Comment