07.07.2012, 08:36
Hello pepel!
I'm making an object editor for a server, and i want it so every player can have their own map in their own virtual world. I have finished most of it now I'm figuring out the best way to save the maps. Ideally i want to be able to save each players map. Now if i allow them to create 1000 objects that's quite a lot of data that needs to be saved. I figure flat files would be no good for this much data, i could be very wrong.
So at the moment I'm thinking of 2 options.
1) Create a single database and each player has his/her own table with the map inside.
2) Each player has their own database with just their map inside.
I'm kind of thinking option 2 might be the best option, because option 1 will eventually become a very large database and queries might become slow. (i'm not even sure if they do get slower with larger databases)
Which option would you choose? If none how would you do it?
I would really appreciate it if someone could provide a better method than the 2 i posted.
Thanks in advance for any tips.
I'm making an object editor for a server, and i want it so every player can have their own map in their own virtual world. I have finished most of it now I'm figuring out the best way to save the maps. Ideally i want to be able to save each players map. Now if i allow them to create 1000 objects that's quite a lot of data that needs to be saved. I figure flat files would be no good for this much data, i could be very wrong.
So at the moment I'm thinking of 2 options.
1) Create a single database and each player has his/her own table with the map inside.
2) Each player has their own database with just their map inside.
I'm kind of thinking option 2 might be the best option, because option 1 will eventually become a very large database and queries might become slow. (i'm not even sure if they do get slower with larger databases)
Which option would you choose? If none how would you do it?
I would really appreciate it if someone could provide a better method than the 2 i posted.
Thanks in advance for any tips.