• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
Xanather

MMO (Flat-File)? Databases

5 posts in this topic

I was wondering if any of these ideas could even be possible on hardware today:
Quick overview: A database that will hold probably 1 million+ accounts (probably a overkill in the amount of numbers, but id like to be safe and try to design a system that is easily expandable).
The database will probably all contain, for example, the following...
a) personal information (username, password aswell)
b) list of characters on the account...
- i) character level
- ii) character inventory
- iii) more game-specific data

Thoughts on creating this database:
1. Design my own database system that has a folder containing the account database. There will be 1 .dat file per account. Ive tried something similar like this before and the folder size becomes really large even though there are not large files containing within it, this probably has something to do with the disk state and NTFS... Although I dont think performance would be affected as the database size increases if this is the case though (directly load the single file, no searching required).
2. Same design as above but instead a maximum of 200 accounts per file (not completely sure how this will work though, by that I mean how to find the correct account between multiple files).
3. One main file, dynamically add/remove accounts from this file (I would assume though searching for a account in this solution will have the same problems that SQL databases yield).
4. Just go with technologies such as SQL (big databases become slow though).

The question if i did not clarify: Any of the suggested ideas above even feasibly possible?

As always, thank you. All replies are appriciated.
Xanather. Edited by Xanather
0

Share this post


Link to post
Share on other sites
A single database table with a hundred million records is not a problem. Storage is cheap and easy to manage.

The question is how many queries per second you want to run on that table. With proper SSDs and a 10:1 read/write distribution, and using read slaves for the read queries, I'd expect you could do 1,000 writes and 10,000 reads per second to a SQL database like that. Note that read slaves are very easy to set up for SQL databases, but much harder to set up for file system based solutions.

You could also put all the accounts in a single Redis instance. I bet you could do several hundred thousand transactions per second there, with the trade-off that if the system crashed, you might roll back to the last disk snapshot (20 minutes or so for a full system.) Redis also supports replicas that you can use as read slaves.

So, to better answer your question about feasibility: The number of accounts doesn't matter much. The number and complexity of queries per second is much more important. Do you have a feeling for what you'd want to accomplish there? Edited by hplus0603
1

Share this post


Link to post
Share on other sites
[quote name='Xanather' timestamp='1343380631' post='4963572']
1. Design my own database system that has a folder containing the account database. There will be 1 .dat file per account. Ive tried something similar like this before and the folder size becomes really large even though there are not large files containing within it, this probably has something to do with the disk state and NTFS... Although I dont think performance would be affected as the database size increases if this is the case though (directly load the single file, no searching required).
2. Same design as above but instead a maximum of 200 accounts per file (not completely sure how this will work though, by that I mean how to find the correct account between multiple files).
3. One main file, dynamically add/remove accounts from this file (I would assume though searching for a account in this solution will have the same problems that SQL databases yield).
4. Just go with technologies such as SQL (big databases become slow though).
[/quote]
1,2,3 : do this only if you want to write your own DB for fun, not if you need a scalable, working, fast data base.
4: this is the way to go, 1 mio. entiries and a handful of tables are not really a problem. With the right indicies you will have fast access times, the question is, how often will you access the db as hpplus already explained.

From the data you describes access will be most likely not happen very often (login,logout, 5 minut autosave), in this case a simple mysql data base will be likely sufficient and can be scaled up later once you need to support more accounts.
1

Share this post


Link to post
Share on other sites
Id probably predict... hmm... 2-4? queries per second if I design it well (may probably increase much more though, variates greatly depending on current amount of players obviously). Does this sound feasible for SQL? Edited by Xanather
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0