title: What is an ideal time to update modified content field of table and show it to Users?
body: <p>I am working in an application where I have to show application users that contents of this page was modified like :</p>
  
  <pre><code>1 min ago
  5 min ago
  2 days ago
  something...
  </code></pre>
  
  <p>Then what should be ideal time interval to fire an ajax call to get last modified date for contents from db and to show to users?</p>
  
  <p>JavaScript has setInterval() where we can set function (to fire ajax call and get last modified date) and time interval (based on which a function will be called to fire ajax call).</p>
  
  <p>Why I am asking because firing ajax call within very few seconds can be considered as an overhead to application.</p>
  
  <p>Please suggest me on this.
  Thanks in advance.</p>
  
  <p><em><strong>Edit:</em></strong>
  I am appreciating your comment and checked plugin. But whenever any changes are made to DB table there is one parent table which has modifiedDate field which is updated on every changes and that I have to show to users.</p>