Permalink
Browse files

Comment only. Record idea about unblocking subs.

  • Loading branch information...
1 parent 8924417 commit a1fed0caaa8d0dcae70754130648611cb8d28f8d @n1mmy n1mmy committed Mar 4, 2014
Showing with 7 additions and 0 deletions.
  1. +7 −0 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(

0 comments on commit a1fed0c

Please sign in to comment.