Saving/storing and loading data from XML or .Dat or SQL with C#



So I have a lot of information that I need to store per player in a videogame. This information is all integers/strings/doubles and floats. I currently serialize and store the data in .Dat files which is working fine in testing, but once other players begin playing I'm wondering if this is effective. I save around 16-25 .Dat files per player and load them, each having around 100-200 numbers or strings in them. I want to get as fast as possible connection/loading/saving as possible. Since with .Dat files I have to load the entire file to change one value, I don't think this is a good method. I am wondering if having an SQL server, or having my data stored in XML documents, or storing my data in .dat files is the most effective for creating a game where data has to be constantly loaded and changed and saved, and commonly only one value at a time in the entire document. Thank you!


No comments:

Post a Comment