Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Lookup a value - global, new table or extra field?

Quote Reply
Lookup a value - global, new table or extra field?
Hello,

Each one of my links has a LocationID. There are 300 different locations which hardly ever change.

Each LocationID has a matching name.

To get the name of the location, I could either:


  1. Add another field to the Links table called LocationName
  2. Write a global, which contains a list of all the location names and returns the name given the LocationID
  3. Add a new table called glinks_location which contains the columns LocationID and LocationName, and write a global which returns the name from the table given the ID
Considering there are 300 locations which do not change - which should I choose? Or is there another way?

Thanks in advance for your help!

Rob
Subject Author Views Date
Thread Lookup a value - global, new table or extra field? mrrob 4565 Aug 28, 2008, 9:51 AM
Thread Re: [mrrob] Lookup a value - global, new table or extra field?
Andy 4489 Aug 28, 2008, 9:55 AM
Thread Re: [Andy] Lookup a value - global, new table or extra field?
mrrob 4489 Aug 28, 2008, 9:57 AM
Thread Re: [mrrob] Lookup a value - global, new table or extra field?
Andy 4491 Aug 28, 2008, 9:58 AM
Post Re: [Andy] Lookup a value - global, new table or extra field?
mrrob 4467 Aug 28, 2008, 10:00 AM
Thread Re: [Andy] Lookup a value - global, new table or extra field?
mrrob 4472 Aug 28, 2008, 10:23 AM
Thread Re: [mrrob] Lookup a value - global, new table or extra field?
Andy 4472 Aug 28, 2008, 10:27 AM
Post Re: [Andy] Lookup a value - global, new table or extra field?
mrrob 4478 Aug 28, 2008, 11:50 AM