This repository was archived by the owner on Oct 24, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -263,6 +263,8 @@ stay subscribed to your private messages.
263263
264264## Publication strategies
265265
266+ > The following features are available from Meteor 2.4 or ` ddp-server@2.5.0 `
267+
266268Once you start scaling your application you might want to have more control on how the data from publications is being handled on the client.
267269There are three publications strategies:
268270
@@ -280,6 +282,13 @@ This should only be chosen for special use cases like send-and-forget queues.
280282sent to the client so it can remove them when a subscription is stopped.
281283This strategy can be used when a collection is only used in a single publication.
282284
285+ When ` NO_MERGE ` is selected the client will be handling gracefully duplicate events without throwing an exception.
286+ Specifically:
287+
288+ * When we receive an added message for a document that is already present in the client's collection, it will be changed.
289+ * When we receive a change message for a document that is not in the client's collection, it will be added.
290+ * When we receive a removed message for a document that is not in the client's collection, nothing will happen.
291+
283292You can import the publication strategies from ` DDPServer ` .
284293
285294``` js
You can’t perform that action at this time.
0 commit comments