Quote:
Originally Posted by _tao4229_
Nice job reading the other posts in the thread.
|
I did read the other posts, my point is why bother with using standard none optomized binary files when you could happily use MySQL instead and let MySQL worry about managing your data for you.
People dont want to change from the standard binary files but want the performance, speed and reliability of a fully managed database system, its simply not possible, if it was that easy to get the same level of performance, speed and reliability then there would not be dedicated database packages which cost large sums of money, because anyone can do it.
Sure you can make improvements to the existing system, adding thread safe locking would be a place to start, ensuring the file is closed after use is a must. With these 2 simple things, if done correctly you should see an improvement, but even then your server will be waiting for access on a regular basis if your updating the character often (which you should be to get rid of 'rollback syndrome').
If you want performance, speed and reliability you will have to ditch the standard binary file implementation in that source and switch to MySQL, its honestly not that hard, the performance is better, you can make changes to your database easily without loosing all of your accounts and characters, its alot faster when it comes to updating and itterating through records. There is not arguement here for standard binary files, switch to MySQL.