-
Notifications
You must be signed in to change notification settings - Fork 25
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
Change database structure to store the content #498
Labels
Comments
For approach 2With this query we get the data in a table format as expected:
|
Question to discuss: Do we need a additional table to hold all row ids with foreign keys to the values? If we do not, how can we get the "next" ID for a row? |
github-project-automation
bot
moved this to 🧭 Planning evaluation (don't pick)
in 📝 Office team
Nov 28, 2023
juliusknorr
moved this from 🧭 Planning evaluation (don't pick)
to 🏗️ In progress
in 📝 Office team
Nov 28, 2023
datenangebot
added
2. developing
Work in progress
and removed
discussion
Being discussed
labels
Dec 8, 2023
github-project-automation
bot
moved this from 🏗️ In progress
to ☑️ Done
in 📝 Office team
Jan 29, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We faced some issues and challenges using the native json option from the supported databases.
It is quite hard to implement all the features in all supported db systems (pgsql, maria/mysql, sqlite, oracle?).
The syntax is quite hard, completely different between the db systems and absolute not readable for bug fixing and enhancements.
At the moment we have a big technical effort to request data (get structures, permission checks, get the "real" data and statistic data like rows count). We don't exactly know how the system would behave in very large setups, but we assume a negative performance.
It would make more sense to have the technical effort on the structure changes and not on the data requests, so we like to discuss different approaches to store the data on the back end side.
Small use case as an example:
We have a list of 3 products with a title, description and price each. Would be presented like:
New approach 1
Each customer table has it's own table in the db, the same columns etc. So querying data is quite simple. But we have to manipulate the database structure outside of the "setup and migration" context. Uncertain about sideffects here...
tables
columns
rows_for_table_1
New approach 2
Each column type has it's own table. Is it possible to merge them in a sql way so we can filter and sort directly within one query?
tables
columns
row_values_for_column_type_text
row_values_for_column_type_number
@juliushaertl To continue our discussion and thoughts...
The text was updated successfully, but these errors were encountered: