Jump to content

rilex

Members
  • Posts

    208
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by rilex

  1. ies it is :-S

    Hmm... Do you have Setup under Tools? That also requires gmlevel 5 to access.

    I fount ver3.1.3 characters.data field offset have big diffrence from ver 3.0.x,

    I want to know both 3.1.3 and 3.0.x characters.data offset detail,

    but i cannot find it in forum,could you tell me where can i find it?

    You should create your own thread for this, but look in the MaNGOS source file, UpdateFields.h. That will tell you the value for the version you have downloaded.

  2. FWIW, if you do:

    SELECT `account`.*, `realmcharacters`.* FROM `account`

    LEFT OUTER JOIN `realmcharacters` ON `account`.ID = `realmcharacters`.acctid

    WHERE `realmcharacters`.acctid IS NOT NULL

    That will force MySQL to use the secondary PK on realmcharacters (IOW, the acctid PK instead of realmid PK). Apparently MySQL will use PKs in the order specified, so acctid will never be used if realmid ISN'T used in your query. This is probably why I discovered that specifically creating an account on acctid resolved my perf issue (but the above query works around that).

  3. I have the key, in Sqylog as:

    Indexes: PRIMARY

    Columns: realmid,accid

    Unique: Checked

    Also, here is the create script from the current realmd.sql:

    --

    -- Table structure for table `realmcharacters`

    --

    DROP TABLE IF EXISTS `realmcharacters`;

    CREATE TABLE `realmcharacters` (

    `realmid` int(11) unsigned NOT NULL default '0',

    `acctid` bigint(20) unsigned NOT NULL,

    `numchars` tinyint(3) unsigned NOT NULL default '0',

    PRIMARY KEY (`realmid`,`acctid`)

    ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Realm Character Tracker';

    However, doing this join will still lead to a table scan and not using an index, hence the need for an index.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use