3 ms·
One way to do it: every XXX minutes generate a file containing all the data pulled from MongoDB for the past YYY minutes. Have that sit someplace accessible wit
by ZackOfAllTrades 16y ago
One way to do it: every XXX minutes generate a file containing all the data pulled from MongoDB for the past YYY minutes. Have that sit someplace accessible within the Intranet.
Use some XMLHttpRequest on the browser side to pull the data up. Load it up and parse it into arrays and then throw it into a dataTable[0] or some custom Raphael.js [1] stuff. Reload every XXX minutes.
It seems like that if you just generate data on the server side and then do all the processing on the client side, you can keep the load light on the server and still do neat stuff with your data.
[0]http://www.datatables.net/ http://www.datatables.net/
[1]http://raphaeljs.com/ http://raphaeljs.com/