A user on a web site can click on a button to vote for one image after another. This sends some requests to a MySQL database through jQuery. I’m not sure but the web site account probably allows 10 connections maximum.
In this context, can repeated clicking by a single user cause multiple requests and in turn cause performance issues? If so, what simple ways exist to throttle requests?
Edit: Question reformulated as flagged as unclear.
If there is no reason for anyone to ever click the button more then once every few seconds, just setup a disable function for that button. So when it is clicked it is disabled for 5 seconds, then renables again.
You may want to look up a better timer method, this is one way i know off hand.
You can use
Button onclick-
Good Luck