Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Database/World Building

Development::Database/World Building World Building forum, dedicated to the EQEmu MySQL Database. Post partial/complete databases for spawns, items, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-12-2007, 01:33 AM
John Adams
Demi-God
 
Join Date: Jul 2006
Posts: 1,552
Default

I should have asked initially, but where do you see a deficiency with the current indexing? I mean, the PKs shouldn't matter as much as the FKs - or what IDs tie the whole thing together. The database does show it's age, with no constraints and dead data (that many have offered to clean up).

The npc_types table is laid out exactly as you described, with Zone 1 mobs being numbered 1000-1999, zone 2 being 2000-2999, etc. You can't really bind many of the other tables to "zones" unless the range is increased (I guess), because there could be more spawn groups, spawns, loot drops etc.

I doubt SQL cares what your PK is, but I believe our shared memory modules do. If you read in IDs 1-100,000, it takes up 'x' amount of memory. If you start making up new IDs and now have to read in ID 1-1,000,000, that's a helluva lot more memory (if we pad that empty space, which I think we do from an earlier discussion).

Anyway, always a good idea to have a solid database. I guess I forgive 'eq' because it is so old, before MySQL became a real database solution
Reply With Quote
  #2  
Old 06-12-2007, 05:40 AM
EmanonCow
Sarnak
 
Join Date: Aug 2006
Posts: 35
Default

How practical would splitting the IDs be?

Ie, items being identified by a (zone, ID) pair, with (0, ID) being "uncatagorized"?

This would require changes to the code base (so it identifies things as (zone, ID) pairs rather than just IDs), but the existing data wouldn't have to be changed.

Then one could start moving things out of the "uncatagorized" zone and into a (zone, ID) pair space -- it would allow one to create portable zone-data files, but not require you to, so existing data would work fine.
Reply With Quote
  #3  
Old 06-12-2007, 05:44 AM
Dralanna
Sarnak
 
Join Date: Jan 2006
Posts: 49
Default

Quote:
items being identified by a (zone, ID) pair, with (0, ID) being "uncatagorized"?
The problem is many items appear in multiple zones.
Reply With Quote
  #4  
Old 06-20-2007, 11:22 PM
ArChron
Fire Beetle
 
Join Date: Dec 2006
Location: Vienna
Posts: 28
Default

Quote:
Originally Posted by John Adams View Post
I doubt SQL cares what your PK is, but I believe our shared memory modules do. If you read in IDs 1-100,000, it takes up 'x' amount of memory. If you start making up new IDs and now have to read in ID 1-1,000,000, that's a helluva lot more memory (if we pad that empty space, which I think we do from an earlier discussion).
I believe that the IDs are read and stored in a 1 to <maxid> space... there are other programming models for handling what could be a "sparse matrix/list" if the range of values for IDs were spread out to accomodate a new identification scheme. I think that (EMU code change) is far less of an issue than just managing the data transformations that would have to happen in the SQL database...
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 07:10 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3