Register for your free account! | Forgot your password?

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

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

Advertisement



Looking For A Stable 5165(Non-SQL)

Discussion on Looking For A Stable 5165(Non-SQL) within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old 02/07/2011, 10:48   #16
 
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
Quote:
Originally Posted by Tw3ak View Post
If he wants to "learn" then why not start learning the right way? NO good coder uses flatfile to store data. Any good source is going to use sql because it is faster and more stable then flatfile if the person writing it knows what there doing and doesn't half *** it.
That's not 100% true. Binary can be faster at times.
There's nothing wrong with flat-file databases... it's just the reputation it has from crappy sources that have traditionally used it. Hybrid's new source uses flat-file.
Spirited42 is offline  
Old 02/07/2011, 10:58   #17


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Quote:
Originally Posted by Spirited View Post
That's not 100% true. Binary can be faster at times.
There's nothing wrong with flat-file databases... it's just the reputation it has from crappy sources that have traditionally used it. Hybrid's new source uses flat-file.
I just explained why simple flat-file databases are in no way as efficient as a proper database system, there is no argument, proper database systems store data in binary aswell. I shouldn't even need to mention cached lookup and stored procedures, not to mention proper database systems can handle 50k+ active queries per second (and that's a massive under estimate since tests on MySQL have demonstrated its capacity to perform close to 1 million qps, i also read some time ago about it performing 2 million qps but i cant find that article anymore).

Just because its been used by someone who knows what they are doing doesn't mean that its the best method.
Korvacs is offline  
Old 02/07/2011, 11:23   #18
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Why would someone want a non-sql server?
Unless they had sql servers quit on them way too many times(which is obviously because of their mistake).

If you know how to use MySQL, it works perfectly.

My server is running for over 13 hours now, on MySQL with 200+ players all the time. And guess what, no rollback, no lag. Why? Because if you stick your nose in MySQL configuration and you don't know what you are doing you'll break it.

Best way to handle MySQL is like this:
Code:
string connString = ""Server=" + MySqlHost + ";Database='" + MySqlDatabase + "';Username='" + MySqlUsername + "';Password='" + MySqlPassword + "';Pooling=true; Max Pool Size = 40;Min Pool Size = 5";
For any query that doesn't involve reading.
Code:
using(var conn = new MySqlConnection(connString))
{
conn.Open();
MySqlCommand cmd = new MySqlCommand(commandString, conn);
cmd.ExecuteNonQuery();
}
For reading:
Code:
var conn = new MySqlConnection(connString);
conn.Open();
MySqlCommand cmd = new MySqlCommand(commandString, conn);
var Reader = cmd.ExecuteReader(CommandBehaviour.CloseConnection);

And it works smooth.
-impulse- is offline  
Thanks
1 User
Old 02/07/2011, 11:48   #19
 
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
Quote:
Originally Posted by Korvacs View Post
I just explained why simple flat-file databases are in no way as efficient as a proper database system, there is no argument, proper database systems store data in binary aswell. I shouldn't even need to mention cached lookup and stored procedures, not to mention proper database systems can handle 50k+ active queries per second (and that's a massive under estimate since tests on MySQL have demonstrated its capacity to perform close to 1 million qps, i also read some time ago about it performing 2 million qps but i cant find that article anymore).

Just because its been used by someone who knows what they are doing doesn't mean that its the best method.
Wait, someone told me that binary reading was faster though... now I'm confused. =|
Well I'm using MySql and it's fast for me. Just annoyed I guess if that is true because it means someone that "guided" me with this stuff is full of it...
Spirited42 is offline  
Old 02/07/2011, 11:56   #20


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Reading straight binary is fast, but finding data within a file is not. Say your looking for a specific value in the end of a large file, where do you start looking? At the start of the file, so you have to read all of the data until you find that data your looking for and then either make your change or read that value. Database systems know where all the data 'is' in relation to the database file and can just read the data they need rather than reading the entire file.
Korvacs is offline  
Thanks
1 User
Old 02/07/2011, 12:05   #21
 
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
Quote:
Originally Posted by Korvacs View Post
Reading straight binary is fast, but finding data within a file is not. Say your looking for a specific value in the end of a large file, where do you start looking? At the start of the file, so you have to read all of the data until you find that data your looking for and then either make your change or read that value. Database systems know where all the data 'is' in relation to the database file and can just read the data they need rather than reading the entire file.
I see... I think I took what he was trying to say wrong. I can't even remember who told me it was such a long time ago. And I get what you're saying, it's like the Character files in OldCODB compared to a table in MySql. I don't know why I said that post now... it's obvious - i guess i was just writing without thinking. So when loading the server, it's faster to load it in binary I assume?
Spirited42 is offline  
Old 02/07/2011, 12:21   #22


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Honestly for the sake of simplicity i would load everything from one database system if you can, makes updating and backing up alot simpler not to mention alot more portable. Straight loading from binary files is very fast though so you could load configuration and core things from them yes.
Korvacs is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
CoV2 Its The Most Stable
12/24/2008 - CO2 Private Server - 21 Replies
The Server Work List Same Real CO 1: all DisCity Work 2: luckytime 3: guard skill 4: day and night and rain
Most stable version out
12/15/2008 - CO2 Private Server - 14 Replies
Whats currently the most stable/full Private Conquer out now? For a serious server? =P edit; sorry i ment source thanks alexbigfoot ;d
Stable!!
02/22/2007 - CO2 Exploits, Hacks & Tools - 7 Replies
I earned a super 2soc bow by doing this, I brought a noob to the stable which is next to the promo center (they fixed the promo) i tell them to uneq their items then click on the lamp, i bring my trojan them BAM!!! 1hit drop their items xD



All times are GMT +1. The time now is 00:48.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.