28.11.2011, 00:36
Sometimes a player's data doesn't get fully uploaded into the MySQL database because all of their data couldn't be retrieved before they actually disconnected from the server. I know that MySQL is a little slow when it comes to sending queries, therefore I thought about doing this:
I can extract the player's data and save it all into an INI file. Once the player actually disconnects from the server (i.e. a few seconds after saving the data into the INI file), I could extract the data from the INI file and send some threaded SQL queries and update the information in the database.
Would this be a good way to solve the problem described in the first paragraph? I cba. to do some speed-tests on this, and my knowledge of processing speeds for certain systems is limited.
I can extract the player's data and save it all into an INI file. Once the player actually disconnects from the server (i.e. a few seconds after saving the data into the INI file), I could extract the data from the INI file and send some threaded SQL queries and update the information in the database.
Would this be a good way to solve the problem described in the first paragraph? I cba. to do some speed-tests on this, and my knowledge of processing speeds for certain systems is limited.