spawn_location_name

Development forum for the EQ2Emulator Database project.

Moderator: Team Members

Post Reply
User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

spawn_location_name

Post by Gangrenous » Sat Mar 23, 2019 4:36 am

I am trying to figure out the purpose of the spawn_location_name table and why it was separated? Can we not just merge it with the spawn_location_entry table? If we do not want to return the name for speed purposes, we can just remove 'name' from the query.
Resident Dirty Hippy

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: spawn_location_name

Post by Ememjr » Sat Mar 23, 2019 6:40 am

i agree,
IMO , if a sub table has only one useable column, and has an entry for 80-90 percent of the parent tables entries such as this one
then the tables should be combined

spawn_location_entry has 178315 rows
spawn_location_name has 175899 rows

User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Re: spawn_location_name

Post by Gangrenous » Sat Mar 23, 2019 6:50 am

Looking at it again, I think in a way this is a many to one relationship. I do not see that used often if ever though. Look at both tables closely and you will see how you can use it that way.
Resident Dirty Hippy

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: spawn_location_name

Post by Ememjr » Sat Mar 23, 2019 9:36 am

off topic

so i have seen you lurking about latley and NB online are you back to working on it? or something new?

User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Re: spawn_location_name

Post by Gangrenous » Sat Mar 23, 2019 10:31 am

I am going to be working on it. Currently I am writing a web editor for public use and my use. I should had done that to begin with, that in itself slowed me down greatly last time. My time is way more limited this time, 2-3 hours a day. That is good though, that will prevent any type of burnout.
Resident Dirty Hippy

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: spawn_location_name

Post by Jabantiz » Sat Mar 23, 2019 6:53 pm

I may be wrong on this but I believe this table is just for content devs/web editor to give a name to locations to make it easier to identify what should be in the location. I do not think the server uses it for anything, not even sure the server loads this table.

User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Re: spawn_location_name

Post by Gangrenous » Sun Mar 24, 2019 3:30 am

I definitely think they should be named.
Resident Dirty Hippy

User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Re: spawn_location_name

Post by Gangrenous » Sun Mar 24, 2019 7:33 am

I do want to verify this though. So from this screenshot, you will see I have multiple spawn_location_id with the same ID, different percentages. But if I gather right, that would still have one spawn_location_name, something like zone_location_458353 or something like that. What I am getting at, is you would have a many-to-one with the spawn_location_name table.
You do not have the required permissions to view the files attached to this post.
Resident Dirty Hippy

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: spawn_location_name

Post by Jabantiz » Sun Mar 24, 2019 3:57 pm

Correct

User avatar
Cynnar
Project Leader
Posts: 738
Joined: Sat Sep 27, 2014 1:22 am
EQ2Emu Server: Eq2emulator
Characters: Vlash
Veinlash
Taragak
Cynnar

Re: spawn_location_name

Post by Cynnar » Tue Mar 26, 2019 10:40 pm

I remember reading that it was for devs to identify easier. Maybe the wiki? I'll see if I can get find it again and then link to it.
[ 01000011 01111001 01101110 01101110 01100001 01110010 ]

Follow on:
Twitter Facebook

Contact me:
PM Discord chat email

Hardware: the parts of a computer that can be kicked

User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Re: spawn_location_name

Post by Gangrenous » Wed Mar 27, 2019 5:21 am

I am just wondering about some of the tables and uniqueness. It just seems like there can be multiples with no restrictions. I think we need unique keys on some of these.
Resident Dirty Hippy

User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Re: spawn_location_name

Post by Gangrenous » Fri Mar 29, 2019 11:50 am

So final word, the spawn_location_name should be a one-to-one for the spawn_location_entry table?
Resident Dirty Hippy

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests