zergtmn
37fd225a89
[11292] Strip trailing whitespace after [11284]
2011-03-27 23:40:42 +06:00
Ambal
40ef9cbf2f
[11284] Implement prepared statements for INSERT+DELETE+UPDATE SQL requests. Should improve player save performance + lower MySQL server CPU usage.
...
Note: PostgreSQL does not have prepared statements implemented using native APIs.
Huge thanks to Undergarun, kero99 and Vinolentus.
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-03-25 22:17:59 +02:00
Ambal
49810598c6
[11063] Convert Database::DirectExecute() method to more effective form due to change [11061].
...
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-01-22 02:25:44 +02:00
Ambal
fce48282ad
[11061] Bring 'autocommit' mode for MySQL back. This MySQL feature operates in so frustrating way so it is better to keep it ALWAYS ENABLED!!!
...
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-01-21 23:45:59 +02:00
Ambal
d67219e327
[11059] Fix crash in [11054]. As it turned out - we use not only async transactions but async queries too during server startup =/
...
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-01-21 22:11:35 +02:00
Ambal
07c9f0cbb8
[11054] Do not allow async transaction execution while server is loading. Call Database::InitDelayThread() function explicitly to create async DB worker thread after server initialization is complete.
...
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-01-20 23:46:51 +02:00
Ambal
631ce36680
[11045] Rewrite internals of DB layer. Simplify code and use less locking. Spawn and use separate connections for sync and async DB requests. Implement database connection pool for SELECT queries. Up to maximum 16 connections supported. Disable 'autocommit' mode for MySQL.
...
UPDATE YOUR CONFIGS!
Defaults:
LoginDatabaseConnections = 1
WorldDatabaseConnections = 1
CharacterDatabaseConnections = 1
If you are not using <mtmaps> patch do not change the default settings - this is useless. You can try following option in your MySQL config to squeeze even more performance from your DB:
[mysqld]
transaction-isolation = READ-COMMITTED
Great thanks to Undergarun, kero99 and selector for making tests and providing very useful feedback and DB statistics! Have fun :)
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-01-19 22:05:20 +02:00
VladimirMangos
bf0ecf6e71
[10947] Update copyright notice for 2011 year.
2011-01-01 20:33:43 +03:00
VladimirMangos
abc6dfca98
[10792] Fixed warnings and need in redundent char* casts in database access code.
2010-11-29 00:47:11 +03:00
VladimirMangos
10d3d3ce24
[10692] Fixed some GCC warnings and code errors.
...
Thanks to freghar for provide cleaned list of warning messages.
2010-11-07 21:30:55 +03:00
VladimirMangos
1eed65d5ac
[10082] Drop now unused dotconfpp lib code.
2010-06-20 02:20:51 +04:00
Patman128
2ee1bb5219
[9906] More user friendly output at DB version check fail.
...
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-16 03:03:25 +04:00
arrai
39559fc73a
[9517] rewrote RA console using ACE
...
- moved SQL pinging to SqlDelayThread
- use sAccountMgr instead of explict sql queries
2010-03-04 23:54:11 +01:00
VladimirMangos
fe6e2e1746
[9122] Updated copyright notice for new year.
...
Also fix some lost in past cases.
2010-01-08 00:02:21 +03:00
Ambal
7db230df55
[8473] Fixed a memory leak in 8441.
...
Signed-off-by: Ambal <pogrebniak@gala.net>
2009-09-05 13:45:10 +03:00
VladimirMangos
2e09244e57
[8453] Make more informative error output in case empty version tables.
2009-09-02 18:47:37 +04:00
VladimirMangos
8a7b77c088
[8441] Implement check DBs versions (required_* fields) at mangosd/realmd loading.
...
* git_id updated to generate revision_sql.h file with required_* fields strings.
* mangosd/realmd changed to include header and check this strings at startup.
* mangosd/realmd will terminated if related strings not match in DB content.
In most cases this meaning that not all expected sql updates applied.
Current required_* field stored in DB output in error to help find what last sql updates applied.
IMPORTNAT NOTE for mangos devs: please update used git_id before adding next commits with sql updates!
2009-08-30 15:02:10 +04:00
VladimirMangos
c3c7187841
[7935] Move seldom used access to query data by field names to independent object.
...
This let not do preparation code for unused later functionlity.
2009-06-01 10:24:14 +04:00
VladimirMangos
803a815fa4
[7815] Apply mangos code style: Replace tabs by spaces in recent added code.
2009-05-13 15:48:23 +04:00
Ambal
2aff48cc5d
[7810] Moved ZThread related code on ACE framework.
...
Remove ZThread source code from mangos.
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
2009-05-11 12:14:22 +04:00
arrai
c6f48843ad
[7017] Updated copyright notice for new year
2009-01-03 18:09:51 +01:00
TheLuda
899d7dec74
Applied new coding standard, see http://github.com/mangos/mangos/wikis/codingstandards for more.
2008-10-15 18:25:10 +02:00
TheLuda
800ee76535
Imported MaNGOS revision 6767 from http://mangos.svn.sourceforge.net/svnroot/mangos/trunk/
2008-10-14 00:29:20 +02:00