Register for your free account! | Forgot your password?

You last visited: Today at 12:17

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

Advertisement



[Release] Fastest MySql System [C#]

Discussion on [Release] Fastest MySql System [C#] within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old 04/12/2011, 02:53   #16
 
stealarcher's Avatar
 
elite*gold: 0
Join Date: Apr 2006
Posts: 231
Received Thanks: 94
if im not mistaken this is exactly how impulse did his in his source.
stealarcher is offline  
Old 04/12/2011, 07:15   #17
 
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
Quote:
Originally Posted by stealarcher View Post
if im not mistaken this is exactly how impulse did his in his source.
You are 100%, completely mistaking ><"
This isn't even remotely like his...
His is 600+ lines more than my system...
Spirited42 is offline  
Old 04/12/2011, 10:24   #18
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Quote:
Originally Posted by Spirited View Post
You are 100%, completely mistaking ><"
This isn't even remotely like his...
His is 600+ lines more than my system...
Now depends, I wrote my wrapper because I hate MySQL syntax errors and how often they appear when you have to write your queries. Using functions to add parameters and so, it's much safer.

Though, the problem isn't really about how you manage your queries when you are dealing with MySQL. The problem is you have to restart your server once a few hours if you are using the .NET wrapper they give you. There is a bug in it.
One connection only can't handle all data and might close because of overloading, and, using the pool, after a few hours, your connections will be unusable. I managed to 'fix' a bit the wrapper(they give the source) and it only gives one errors once a few hours when you want to read data. My server is staying up for 1 day without restart, with at least 25 players every moment(for now only ) up to 90(max yet) and there is no problem with MySQL.

I suggest you use MySQL pooling, and try to fix the problem yourself, to prove you are worthy of having a server. I will not release the dll though.
-impulse- is offline  
Old 04/12/2011, 17:30   #19


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Or just switch to MsSQL where the problem doesnt exist in the first place.
Korvacs is offline  
Old 04/12/2011, 17:45   #20
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Quote:
Originally Posted by Korvacs View Post
Or just switch to MsSQL where the problem doesnt exist in the first place.
But then it would be harder to link php with the database. With MySQL there is everything already set up and it's just easier.
-impulse- is offline  
Old 04/12/2011, 18:16   #21


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Quote:
Originally Posted by -impulse- View Post
But then it would be harder to link php with the database. With MySQL there is everything already set up and it's just easier.
Pretty backwards thinking, your priority should always always be the server, choosing a database just because the web side of things is more convenient is plain wrong...
Korvacs is offline  
Old 04/12/2011, 20:45   #22
 
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
Quote:
Originally Posted by Korvacs View Post
Pretty backwards thinking, your priority should always always be the server, choosing a database just because the web side of things is more convenient is plain wrong...
Actually... this handler was a MsSql handler...
It can easily be converted back.
Spirited42 is offline  
Old 04/12/2011, 21:05   #23
 
elite*gold: 0
Join Date: Apr 2011
Posts: 73
Received Thanks: 12
Quote:
Originally Posted by -impulse- View Post
But then it would be harder to link php with the database. With MySQL there is everything already set up and it's just easier.
That's why ASP.NET exist.
Secured is offline  
Old 04/12/2011, 21:55   #24
 
|NeoX's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 237
Received Thanks: 99
tho asp.net hosts are more expensive
|NeoX is offline  
Old 04/12/2011, 22:04   #25
 
elite*gold: 0
Join Date: Apr 2011
Posts: 73
Received Thanks: 12
Quote:
Originally Posted by |NeoX View Post
tho asp.net hosts are more expensive
You don't need an asp.net host for hosting local, since it's for interacting with the server
Secured is offline  
Old 04/13/2011, 16:51   #26
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Funny how anyone believes this is new or even an imporvement on what most sources use right now. It's the same thing.
Next time you choose to 'compare' your fantastic work to existing work, run some tests and post the results here.
Calling yourself the best makes you look like an idiot anyway. Unless you can prove it ofc.
Basser is offline  
Thanks
1 User
Old 04/14/2011, 00:58   #27
 
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
Quote:
Originally Posted by Basser View Post
Funny how anyone believes this is new or even an imporvement on what most sources use right now. It's the same thing.
Next time you choose to 'compare' your fantastic work to existing work, run some tests and post the results here.
Calling yourself the best makes you look like an idiot anyway. Unless you can prove it ofc.
This system skips a lot of steps and doesn't store any data (thus using less RAM). It rids of 5 dictionaries in Impulse's system and uses 600 less lines. Learn what efficiency is before you post another comment on one of my threads.

PS: Yes. I know it's not the best. That's why I put it there. Challenge me if you think it's not with actual facts, not trolling.
Spirited42 is offline  
Old 04/14/2011, 05:36   #28
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
From a good programmar -> more lines (depending on the situation) = more efficient.

It's backwards to what you guys think it is.

Searching for a value in a sorted list - which is more efficient?

Code:
for (int i : list)
{
     if (i == val) return true;
}
return false;
or

Code:
int mid, min, max;
do {
  if (min >= max) return false;

  mid = (min + max) / 2;

  if (list[mid] < val) max = mid - 1;
  else if (list[mid] > val) min = mid + 1;
} while (list[mid] != val);
return true;
is more efficient at finding a value in a large set of sorted numbers?
_tao4229_ is offline  
Old 04/14/2011, 07:17   #29
 
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
Quote:
Originally Posted by _tao4229_ View Post
From a good programmar -> more lines (depending on the situation) = more efficient.

It's backwards to what you guys think it is.

Searching for a value in a sorted list - which is more efficient?

Code:
for (int i : list)
{
     if (i == val) return true;
}
return false;
or

Code:
int mid, min, max;
do {
  if (min >= max) return false;

  mid = (min + max) / 2;

  if (list[mid] < val) max = mid - 1;
  else if (list[mid] > val) min = mid + 1;
} while (list[mid] != val);
return true;
is more efficient at finding a value in a large set of sorted numbers?
That isn't the case though in this instance. Making 5 dictionaries for values to be send as objects is useless. All it is is a string builder. If you know how to build the string yourself, then the code isn't even needed.
Spirited42 is offline  
Old 04/14/2011, 09:04   #30


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 793
And PHP can be easily linked to mssql.
KraHen is offline  
Reply


Similar Threads Similar Threads
Mysql Login System erstellen
04/04/2011 - Web Development - 9 Replies
Hallo zusammen =) ich mal wieder xD da mein anderes problem mit dem Kontaktformular noch in Arbeit ist, komme ich schon einmal zu meinem nächsten Problem ich habe ,nach dem Tutorial von Hier Eine Datenbank erstellt und bin schon bei Punkt 2 und genau da tritt mein problem auf....
Vote System zeigt MySQL Error
01/07/2011 - WoW Private Server - 1 Replies
Hey, für unseren 2.4.3 Armemu Server wollten wir ein VOte System einbauen.. Klappte alles wunderbar aber es kommt wenn man auf "Vote now" klickt ein MySQL Erro: Unknown column 'votes' in 'field list' Folgende Dbs sind vorhanden: rewars shoplog topsites votelog
[Release] MySQL Insert system
07/18/2010 - CO2 PServer Guides & Releases - 18 Replies
Ello! First of all, this is NOT sourcedependent, which means you can use this on any source without modifying the code. This is an replacement for all of you who still uses normal MySQL queries. Use this code to clean up, make it easier and more orginazed. Here's how it looks: Example: (Original (LOTF for example))
[Help CoEmuV2 (PHP/MYSQL required)] Donation system
07/18/2009 - CO2 Private Server - 2 Replies
I want an system if someone donated it updates an other column so: Confirmation Code : put something here // Mysql table: Dragonballs.Dcode Confirmation Pass : put something here // Mysql table: Dragonballs.Dpass And then if you click claim it updates the table/column : Characters.Prize With the amount of : Dragonballs.Damount



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


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.