I'm trying to implement an AJAX script that will be responsible for checking for new data on my MySQL server and updating a list if new data exist. The one solution that I found is to have a timer to checking any given time, which works, but because on my system i'm going to have more than 50 online users at the same time, they will execute this script and I will have an impact on the processing time of my MySQL server. The second solution is to use Comet model but in order to update the A form I have to link somehow the B form to inform the server that new data has been inserted in order for the server to send a response to A form to inform it that new data have been added, which i don't want to link the B form with the server. Is there any different scenario that I can use in order for limiting the processing time, overloading the server ,minimize the performance and not reaching the max MySQL connections on my server for checking for new data.
Thank you