How to increase the duration of reloading collections in Admin dashboard

This is applicable only in version 8.6.4 and 8.6.5

By default, the collections in dashboard refresh every 5 seconds. It can be increased via scripts by editing /webapps/searchblox/scripts/collection.js

You can manually make the changes in /webapps/searchblox/scripts/collection.js in line nos
  728, 3837. You can also increase the refresh time in these two lines using a code editor. You can either reduce or increase the value based on your setup. 

These changes are suggested for setup with a large number of collections. The value is in milliseconds

eg: If you want the reloading to happen once every 30 seconds you can give it in collection.js as below:

These changes are suggested for setup with a large number of collections. 
 setTimeout('Collection.getCollectionStatus()', 30000);


However please note that on introducing delay the collection's current index status would be refreshed only in the next refresh i.e., you would not be able to find immediate changes in collection status when you start indexing or refreshing. 

Have more questions? Submit a request

Comments