I have a calendar created with a table. Users can mark the dates on the calendar by clicking on it. I wonder is it safe or good to update mySQL fields on every click or to update fields on one Submit button.
I created a very simple on click update with jquery, but I wonder what the better way is.
I have a calendar created with a table. Users can mark the dates on
Share
It doesn’t really matter. MySQL is more than capable enough to handle the requests your likely are going to throw at it until there are more than hundreds of updates to the same table at the same time.
It is a little more user-friendly to immediately save the changes trough AJAX than to have a submit though, so I’d go with the latter.