At pinge DB hvert sekund er ikke den ideelle måde at gøre dette på; du kan implementere en kombination af DB-triggere og HTML5-websockets/push-meddelelser: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