I am stuck at this and search a lot about it but didn't find any solution. I created software in Netbeans that is currently connected to the local database (localhost PHPMYADMIN), now I have a server. What I want to do is that, For example, when the user clicks on the save button data must save in the local database and then upload on the server (at the backend). I didn't want to save data at the same time on both server and local because its time taking and slow down the software performance.
Asked
Active
Viewed 50 times
0
-
User in this case is only you, unless you setup phpmyadmin on each user. In that case you could have a portion of your code that does that. Ex. A class that handles saving information based on time for example, every hour. Correct me if I’m wrong. – iSpark Oct 05 '20 at 17:54
-
assume that I setup PHPMyAdmin in every user PC. – Muhammad Akif Saleem Oct 05 '20 at 17:57
-
@iSpark If a class save the information and upload on the server after every one hour, then after every hour user should wait for data to upload on server. – Muhammad Akif Saleem Oct 05 '20 at 18:00
-
Not necessarily, lookup worker threads. – iSpark Oct 06 '20 at 18:08
-
Maybe this is useful: https://stackoverflow.com/questions/33409428/create-worker-thread-which-performs-specific-task-in-the-background – iSpark Oct 06 '20 at 18:11