Original Post
I''m working on a MMOG, and can''t really make up my mind when it comes to technology choice for persistence of players.
I''m considering both SQL and XML (Or maybe a mixture of the two?)
Using pure SQL I would have a player object spread over multiple tables - and the structure of objects (like inventory items, equipped items, spell affects etc.) would force me to use more than one SQL statement - even recursively performing SQL statements with containers inside containers.
With XML I would have the advantage that everything I need to read is in one file, and I expect this to be faster than performing multiple SQL statements? (At least with SAX parsing, of course then I would have the added complexity of maintaining stacks for nested elements). Problem is that to locate a player I need to locate the file - and open the file just to get the password.
Using mixed SQL/XML I would save attributes of the player in an RDBMS, while structured / variable length data could be saved as XML in text type fields.
Any comments on which method to choose?
***
For Java games and Java related resources, go to http://www.javaengines.dk
***