C Board  

Go Back   C Board > General Programming Boards > Networking/Device Communication

Reply
 
LinkBack Thread Tools Display Modes
Old 01-11-2007, 11:01 PM   #1
Registered User
 
taelmx's Avatar
 
Join Date: Oct 2006
Location: Japan
Posts: 55
Database API?

I'm designing an MMORPG and was wondering what would be the fatstest way to store stats and such in a database. I was thinking that you could store stats, items, and other things in an SQL database, but I have no clue about database programming. I'm using IRRnet and IRRlicht for the engine. The network connection is ok, its just the database that I need to decide on. I need something that can keep up with about 5 querys per second or faster. Like when the player picks up an item or gets money.Most of the real time part of the game will be done directly through networking. Hacking is only a concern for the database. Speed hacks and teleporting hacks are not that much of a deal for the game; they won't affect other player's stats or anything. Thanks ;D
taelmx is offline   Reply With Quote
Old 01-12-2007, 05:43 AM   #2
Cat without Hat
 
CornedBee's Avatar
 
Join Date: Apr 2003
Posts: 8,492
5 queries per second is nothing. Every database can do it easily.

I recommend SOCI as an access library. It provides a pretty generic interface.
http://soci.sourceforge.net/

Then the backend is not that important anymore.

Alternatively, you could use an embedded engine like SQLite. It has the advantage of not requiring a separate server process, but it is a bit slower than other DBs.
__________________
All the buzzt!
CornedBee

"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
CornedBee is offline   Reply With Quote
Old 01-12-2007, 11:26 PM   #3
Registered User
 
taelmx's Avatar
 
Join Date: Oct 2006
Location: Japan
Posts: 55
Wow nice! That will probably a good start...;D
taelmx is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a database Shamino Game Programming 19 06-10-2007 01:09 PM
Struct with a ptr to a dynamically allocated array of other structures :( michael- C Programming 10 05-18-2006 11:23 PM
FILES in WinAPI Garfield Windows Programming 46 10-02-2003 06:51 PM
Database Library or Api face_master C++ Programming 1 11-02-2002 07:49 AM
Database frontend in API Robert602 Windows Programming 1 01-29-2002 09:07 PM


All times are GMT -6. The time now is 04:49 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22