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

Database architecture #3

Open
JG-QuarkNet opened this issue Apr 1, 2021 · 0 comments
Open

Database architecture #3

JG-QuarkNet opened this issue Apr 1, 2021 · 0 comments
Labels

Comments

@JG-QuarkNet
Copy link
Member

Each student group location (i.e., Rome, Mayagüez, Columbus, ...) enters data that must be written to the database while remaining linked to that location. There are multiple approaches for database architecture to store this.

  1. The original program created individual tables for each location, called "Location" tables. At any given time, there are many dozen of these, which makes the SHOW TABLES listing cluttered and the handful of non-Location tables difficult to find.

  2. When QuarkNet began maintaining the program, Joel attempted to distinguish the Location tables by adding a _LOC_ prefix to them. This works to make the SHOW TABLES listing clearer, but it is a bit ungainly and adds code overhead to remove the prefix for display. On the other hand, this overhead has been accomplished, and shouldn't take too much effort to carry forward.

  3. The data from all locations can be stored in a single table, say LocationData, with an FK to link each data record to its location. This is cleaner in architecture, but the table in question might become so large that it noticeably affects performance, especially since the table will receive heavy read/write activity during a masterclass session.

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

No branches or pull requests

1 participant