auto refresh

Jack Berkjhout shared this idea 5 years ago
Completed

When watching updates caused by developing my app, I have to press F5 for refresh.


Can this also be done say every 10 seconds?

Replies (4)

photo
1

Hi Jack,


I assume you want something like this, open context menu to set one database node auto refresh for every 10 seconds. Am I right? So what do you want to check by auto-refresh, the database's stats, the collections stat, or anything else?

photo
1

Hi Qinghai, thank you very much for the quick response!


Yes, I was looking for a kind of live-update for a set of collections.

In the context menu, I only found Refresh F5 (at the bottom), which is a manually triggered Refresh.

Without moving focus to the MongoBooster window and triggering a manual refresh, I would have like to watch chnages in the collection. I hope you understand what I mean. :-)

I found MongoBooster by far the best program, and on top of that it works perfectly on HiDPI desktops (well scaled).


Kind regards,

Jack.

photo
1

Hi Jack,

You could use our shell to accomplish this. like,


  1. while (true) {
  2. console.log(JSON.stringify(_.pick(db.collection.stats(),["count","size"])))
  3. sleep(10000)
  4. }

Now you can check a collection's status for every 10 seconds. You can add more collection to watch, change interval, whatever you want.

photo
1

We added a dataview refresh in Mongobooster 3.0. You can always check the stat use the code I provided above.

Leave a Comment
 
Attach a file