title: Delay on client side query - Meteor's Mongo Collections
body: <p>I am a Meteor newb and I am trying a simple collection query on the client side. I declared the <code>Subject</code> collection in a common.js file in the root, so the files in both the <code>client/</code> and <code>server/</code> folders have access to it.</p>
  
  <p>Problem: When I want to display some <code>Subject</code> data in my <code>home</code> template through the <code>drop</code> helper, the data gets shown and then disappears.
  With a console.log in my helper definition I see the data appearing in the following order, with a ~20sec delay between the loggings.</p>
  
  <ol>
  <li><code>[]</code></li>
  <li><code>[Object]</code></li>
  <li><code>[]</code></li>
  <li><code>[Object]</code></li>
  </ol>
  
  <p>If I query the server, the result is fast and correct.
  My Object looks like:</p>
  
  <pre><code>{"_id":"b97SpxtduH2spqLXw","id":"15920","upd":"2013-12-29 04:42:16","uuid":"be81554a-7759-11e4-adb6-57ce06b062da","term_id":"9000","lang":"en","part_speech":"","gender":"","term":"Terminologia Morphologica","source":"","description":"","wiki":"","email":""}]
  </code></pre>
  
  <p>I've already stripped my code to what I've shown you. I have the <code>autopublish</code> package but I keep getting this delay when I query on the client side. When I do a simple <code>console.log</code> of the query inside  client.js I get <code>undefined</code>.</p>
  
  <p>[Edit2:] meteor remove udondan:bulk-collection-update did the job. Thank you.
  [Edit:] I've tried removing all other packages, reinstalling meteor, trying another browser (Chrome 39.0.2171.71 (64-bit), Safari 8.0). I am on Yosemite OS X Version 10.10.1.
  root/subject.html:</p>
  
  <pre><code>&lt;template name="home"&gt;
    {{#each drop}}
      Smth {{this.term}}
    {{/each}}
  &lt;/template&gt;
  </code></pre>
  
  <p>root/common.js:</p>
  
  <pre><code>Subject = new Mongo.Collection("subject");
  </code></pre>
  
  <p>client/client.js:</p>
  
  <pre><code>Template.home.helpers({
    drop: function () {
      var c = Subject.find({uuid: "be81554a-7759-11e4-adb6-57ce06b062da", lang: "en"}).fetch();
      console.log(c);
      return c;
    }
  });
  </code></pre>
  
  <p>My meteor packages:</p>
  
  <pre><code>Users-MBP:subject user$ meteor list
  accounts-github                 1.0.2  Login service for Github accounts
  accounts-google                 1.0.2  Login service for Google accounts
  accounts-twitter                1.0.2  Login service for Twitter accounts
  accounts-ui                     1.1.3  Simple templates to add login widgets ...
  autopublish                     1.0.1  Publish the entire database to all cli...
  insecure                        1.0.1  Allow all database writes by default
  iron:router                     1.0.3  Routing specifically designed for Meteor
  meteor-platform                 1.2.0  Include a standard set of Meteor packa...
  nooitaf:semantic-ui             1.1.2  Semantic UI packaged for Meteor
  udondan:bulk-collection-update  0.2.0  Bulk insert/update/delete documents in...
  </code></pre>