I read some approaches on this (for example, disabling the button after being tapped.), but this is not my case now.. I can't disable the button.
I have a (Like) Button. If the user taps on it, an insert query will execute on the database, and the button will be marked as (tapped) with a boolean value = true..
Now, if the user taps again, a drop statement will execute on the database to remove that like.
If the user starts to spam tapping on that button, there will be tons of SQL transactions going onto my database server (Insert & Delete will repeat as long as the user clicks the button).
I noticed that I could spam tapping the like button on Facebook itself. So, there should be a good practice to handle that, I just need to know what it is.
Thanks,