Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 17:13

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Discussion] What should a database contain?

Discussion on [Discussion] What should a database contain? within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
[Discussion] What should a database contain?

Alright, so I've got a massive database of INI files.
These files contain TOO much information, and I could use some help, figuring out what should be in my database and what shouldn't.
First of all, I am using MsSQL (LINQ to SQL if anyone may wonder) and this is my first problem. Should all 'external' data I load be in this database? Or should I use some separate 'flat files' e.g. some INI files containing data.

An example would be the 'attribute points' for people from a certain class.

It would cost me no effort to convert and save this in my 'MsSQL database' but should I? Or should I simply load this as an INI file everytime I put my server on?

My second problem is monsters. What data should I have in my database? And should I load this as INI files, or SQL files?

What parameters should I load? And should I load this from my 'MsSQL database' or something different?

I could go on like this about a lot of tables, e.g. Portals, Npc Spawns, Monsters Info, Monster Spawns, Guilds, Item Info, Item Ownage (who owns what item etc), and even Lottery items, Item drops and so on!

Feel free to post what you think, oh and posting additional hints, info, statistics etc would be appreciated!

~Bas.
Basser is offline  
Old 11/28/2010, 14:41   #2
 
|NeoX's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 237
Received Thanks: 99
IMO, You should load everything from MsSQL since its (usually) much faster than INI files.

I would also load every value and really work with it. There is not one value at the mob table wich is not needed if you wanna make it as TQ like as possible.

But yeah, everyone should think about what HE needs for HIS use. I cant tell how you want your server to be.
|NeoX is offline  
Old 11/28/2010, 15:19   #3
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
I lack knowledge of how database management works, and how it should be used for the best performance.
So do you think adding a lot of values won't decrease performance? 'Cause I won't be using all of them at the beginning.
Basser is offline  
Old 11/28/2010, 15:51   #4
 
elite*gold: 0
Join Date: Feb 2006
Posts: 550
Received Thanks: 81
i cbf seeing what the ini file contains, but if its any sort of data you only need once upon the server to store it in memory then leave it in ini files. store player data in sql
ChingChong23 is offline  
Old 11/28/2010, 16:32   #5
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Quote:
Originally Posted by ChingChong23 View Post
i cbf seeing what the ini file contains, but if its any sort of data you only need once upon the server to store it in memory then leave it in ini files. store player data in sql
I believe only the player data will be loaded more than once, so only that should be stored in SQL? Why do you think so? (Just asking)
Basser is offline  
Old 11/28/2010, 17:15   #6


 
CptSky's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,434
Received Thanks: 1,147
If you want to use a flat-file database, it's better to store the data in memory.

If you want to use a MySQL database, it depends on the interval between the request. If each 15 sec you use the database, it may be better to store the data one time in memory.

For the database contains, just put the data that you use.
Ex. For the monster, maybe you use the drop value, maybe not.
CptSky is offline  
Old 11/28/2010, 18:09   #7
 
|NeoX's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 237
Received Thanks: 99
Quote:
Originally Posted by Basser View Post
I lack knowledge of how database management works, and how it should be used for the best performance.
So do you think adding a lot of values won't decrease performance? 'Cause I won't be using all of them at the beginning.
It will use slightly more RAM, nothing else should decrease the performance.

There are ways on MySQL to store the DB in Memory so its faster to access / read / write but unsafe eg. power loss would also mean a loss of the latest data.

Im not aware if MsSQL supports this type.
|NeoX is offline  
Old 11/28/2010, 19:04   #8
 
bone-you's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 1,491
Received Thanks: 536
If I were you, which is what I take it your asking for (suggestions), I'd put everything you can in the database. Why you ask? Because then you can access it via the website, or change things via a web based admin panel, and if done right, you can modify things while the server is live and update it without taking it down way easier than if it was all INI. Just because it's a database doesn't mean you can't store it all in memory the way you would do with INI too :P Just run the query on startup or when you need the data refreshed on the server due to a change and store it after that.
bone-you is offline  
Old 11/28/2010, 20:31   #9
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
I think I'll use MsSQL for everything apart from the dynamic maps.
Basser is offline  
Reply


Similar Threads Similar Threads
[F]Database
08/22/2010 - Metin2 Private Server - 8 Replies
Hallu liebe Community. Ich hab ein kleines Problem. &&' zwar ich kann in der Tabelle mob_proto die Namen der NPC's nicht ändern. Alsoow das heisst ich kann sie zwar makieren dann sind sie makiert &&' plau. Aber ich kann nix schreiben also es kommt nicht das Symbol zum schreiben oder soo nix bleibt nur makiert. Ich hab schon alle Möglichen Rechte verteilt. Aber es will irgend wie nix bringen. Nunja nun hoffe ich darauf das jemand von euch das Problem schonmal hatte. Und ich hier Hilfe...
Database
03/18/2010 - Dekaron Private Server - 14 Replies
Can someone please provide me with a Database with the DEKARON0001 etc Thanks Scott
cabal discussion. and program discussion xtrap killer
08/02/2009 - Cabal Online - 1 Replies
now alot of people had the chance of trying how to hack and such, google only gave me small hints on bypassing and factors. on my search of learning how to bypass xtrap i came across an interesting pogram... " Xtrap Killer 2279" a person named of Irius or some sort made the program. Cheat Engine :: View topic - X-trap Killer 2275 it was at the cheatengine site so i thought maybe the community can take a look at it! since this is trusting enough. i managed to understand how to...
Binary Discussion Discussion
04/08/2009 - CO2 Private Server - 10 Replies
I dont think thats going to work, youve just made yourself a hell of alot of work :rolleyes: Would be better to ban advertising servers in this section since 90% of people moved over to binarys anyway, theres barely any source code released because everyone either uses LOFT or the binarys, neither of which really need code (LOFT needs a complete rewrite but nothing really specific) I would release a few things but all i can only really give out is some classes, all of my systems are...



All times are GMT +2. The time now is 17:13.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.