|
|
|
|
|
by jackdied
6756 days ago
|
|
SQL is good for doing arbitrary queries. Most web sites don't need to do that! Look at duels.com (a simple player-vs-player game). On each page it needs to know your stats/equipment and that of the person you are dueling. In an SQL database you might store the person/stats in one table, the inventory in another, and the fight record in yet another. In SimpleDB the stats and inventory could be in one domain with fight record in another. SimpleDB or even dumb file-per-player based systems don't pay the overhead for allowing arbitrary queries so they scale better. Your SQL store will be slowed down by the weight of inactive players and their inventories and all the indexes and data they have lying around. Using in-memory caching (like memcached) is a popular way to pay the SQL cost less often while keeping the arbitrary-query ability on the back end. And of course don't forget that SimpleDB is hosted by a farm of machines tweaked and maintained by someone else. Your MySQL setup will never be that cool. Edit: and as for XML,if you add that to SQL, well now you have two problems. |
|
In essence, RDBMS are highly optimised for the sort of things people do with databases, but you need to know what you're doing with them.