title: Meteor js publish and subscribe is very slow to react
body: <p>I have used meteor publish and subscribe method to interact with client and server. Now according to my scenario I am using D3 js to generate a bar chart and as soon as the data is entered in mongo db collection I am using a client side function to generate a bar chart. My issue is that publish and subscribe is too slow to react. And even if I limit the number of documents returned by mongodb, the issue still persists. It is also inconsistent i.e. it will react under 1 second sometimes and other times it will take 4-5 second. Please guide me on what to do and what is wrong with my implementation.</p>
  
  <p>Here is the server side code, </p>
  
  <pre><code>Test = new Mongo.Collection("test")
  
  Meteor.publish('allowedData', function() {
      return Test.find({});
  })
  </code></pre>
  
  <p>and here is the client side code,</p>
  
  <pre><code>Test = new Mongo.Collection("test")
   Meteor.subscribe('allowedData');
   Meteor.setTimeout(function() {
      Test.find().observe({
      added: function(document){
          //something
      },
      changed:function(){
          //something
      },
      removed:function(){
          //something
      },
      })
  </code></pre>