From a1fed0caaa8d0dcae70754130648611cb8d28f8d Mon Sep 17 00:00:00 2001 From: Nick Martin Date: Mon, 3 Mar 2014 22:49:49 -0800 Subject: [PATCH] Comment only. Record idea about unblocking subs. --- packages/livedata/livedata_server.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/livedata/livedata_server.js b/packages/livedata/livedata_server.js index d579180911..84dc2bb68f 100644 --- a/packages/livedata/livedata_server.js +++ b/packages/livedata/livedata_server.js @@ -839,6 +839,13 @@ var Subscription = function ( _.extend(Subscription.prototype, { _runHandler: function () { + // XXX should we unblock() here? Either before running the publish + // function, or before running _publishCursor. + // + // Right now, each publish function blocks all future publishes and + // methods waiting on data from Mongo (or whatever else the function + // blocks on). This probably slows page load in common cases. + var self = this; try { var res = maybeAuditArgumentChecks(