Elke seconde de database pingen is niet de ideale manier om dit te doen; u kunt een combinatie van DB-triggers en HTML5-websockets/push-meldingen implementeren:http://html5hacks.com/blog/2013/04/21/push-notifications-to-the-browser-with-server-sent-events/
http://www.abrandao.com/2013/06/25/websockets-using-modern-html5-technology-for-true-server-push/
http://pusher.com/tutorials/html5_realtime_push_notifications