-
Notifications
You must be signed in to change notification settings - Fork 46
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
Proper database schema #224
Comments
Looks good 👍 A couple minor things:
|
A pool is a data source. Pools are not meant to be reflected in the public API (except for the current legacy one).
I was thinking about that. How easy/hard is it to add additional (optional) fields later to a table? Instead of adding fields in case we might need them and adding a json field that then serves as a dump for anything we forgot I'd like to add fields as we need them and alter the database accordingly. These fields all have to be optional (otherwise old data would break). |
If pools are not meant to be publicly accessed, how would one see the license information? Also I don't think it's feasible to add lot fields for every possible bit of data. There are many things to specifically add support for, but there'll always be things that are only relevant for a few lots. Having a fallback for that seems like a good solution imho. |
This data would be added per lot. |
Ah, that makes sense 👍 But querying by pool would be possible, right? |
The current database schema consists only of a timestamp together with the city and the full JSON dump for this city and timestamp. This results in many problems, mainly bad performance and a waste of space (never changing attributes, e.g. lot coordinates, are saved each time even though they never change). A new database scheme should have the following properties:
This is my concept of how the new database could look like:
@kiliankoe @hbruch what are your thoughts on this?
The text was updated successfully, but these errors were encountered: