Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Station id #16

Open
isedwards opened this issue Aug 31, 2021 · 3 comments
Open

Station id #16

isedwards opened this issue Aug 31, 2021 · 3 comments

Comments

@isedwards
Copy link
Contributor

@DenisStuber wrote:

About the technical design of the data and the meta models. All the different Ids of a station (WMO [new and old], local[s], ICAO, etc.) could or should be unique but they shall not be used as a primary key to specify, internally in the system, a station. The primary key of a station shall not represent any semantic information e.g. an incremental value. All information part of the future Graphic User Interface should have the possibility to be modified, included the Ids type, and I would add with a multi-language design.

@jaggh
Copy link

jaggh commented Aug 31, 2021

I mostly agree. But I do not see great inconveniencies if local Ids are used as primary keys, as long as they are short numeric or alphanumeric (ASCII characters in this case) and free from spaces and punctuation characters...

@DenisStuber
Copy link

In fact, Ids used commonly in Met Services have most often a meaning e.g. WMO Ids. This meaning is subject to modification (administrative, location, etc.). So, once you choose as a primary key (PK) an Ids for a station that has a meaning, when the meaning is changing you will not be able to change the PK, or with great difficulty.
It is much more convenient and flexible to have a PK without any meaning. You are able to trace the different histories of Ids e.g. from date_1 to date_2 such station has had such Id.
We found some articles that mention such database good practices. I will try to get those.

@jaggh
Copy link

jaggh commented Aug 31, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants