![]() |
admin 6/6/2023 |
If you are really looking for a "best" way - do not use 1:1 relationships. From the database theory point of view, 1:1 relationship is just splitting a single table into multiple tables and it doesn't really provide much benefit. A better option is just to use a single table for this purpose and use a bunch of views ( both database views and custom views in PHPRunner ) to present the data in several different ways. |
![]() |
mbintex author 6/6/2023 |
Following reasons lead me to this idea: a) settings fields in settings table are likely to become more and more When we are at it, what do you think about using Json fields for many settings and "exploding" them to fields for query in PHPRunner? Like this SELECT and then for writing to the database constructing the JSON with PHP like this $json = json_encode($data); |