![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Any suggestions or hints would be very appreciated. |
#3
| |||
| |||
|
|
Any suggestions or hints would be very appreciated. |
#4
| |||
| |||
|
|
Any suggestions or hints would be very appreciated. |
#5
| |||
| |||
|
|
Any suggestions or hints would be very appreciated. This nightmare is called an EAV design; you can Google for the painful details. Youn will have to throw it all out and start over with a relational design. But if this has been used for about a year, you can expect to have orphans and bad data everywhere. |
#6
| |||
| |||
|
|
Any suggestions or hints would be very appreciated. This nightmare is called an EAV design; you can Google for the painful details. Youn will have to throw it all out and start over with a relational design. But if this has been used for about a year, you can expect to have orphans and bad data everywhere. |
#7
| |||
| |||
|
|
Any suggestions or hints would be very appreciated. This nightmare is called an EAV design; you can Google for the painful details. Youn will have to throw it all out and start over with a relational design. But if this has been used for about a year, you can expect to have orphans and bad data everywhere. |
#8
| ||||
| ||||
|
|
On 2008-09-16 15:23, --CELKO-- wrote: Any suggestions or hints would be very appreciated. This nightmare is called an EAV design; you can Google for the painful details. Youn will have to throw it all out and start over with a relational design. But if this has been used for about a year, you can expect to have orphans and bad data everywhere. |
|
Thanks for your reply. I have never implemented an EAV design myself, but I'm somewhat familiar with what it means, and what the main problems are. I wasn't aware that the design that I described would also qualify as EAV. It looked more like a concatenation of a number of small tables with identical layout into one larger table (like categories). Orphans would not be possible in this case, but bad references could happen. After 4 years in use, I've only ever seen that happen during development - I guess we were lucky. |
|
I agree that it doesn't look good. I did not design that database myself, I only write the software that uses it. Would it really be better to split the catalog_entries table into 63 very small tables, like: |
|
All of these 63 tables would look exactly alike; some of them really only have two rows, others have 40-50 rows. Simple enumeration wouldn't work, because the text fields dshort and dlong are necessary and can be edited by (some) users. |
#9
| ||||
| ||||
|
|
On 2008-09-16 15:23, --CELKO-- wrote: Any suggestions or hints would be very appreciated. This nightmare is called an EAV design; you can Google for the painful details. Youn will have to throw it all out and start over with a relational design. But if this has been used for about a year, you can expect to have orphans and bad data everywhere. |
|
Thanks for your reply. I have never implemented an EAV design myself, but I'm somewhat familiar with what it means, and what the main problems are. I wasn't aware that the design that I described would also qualify as EAV. It looked more like a concatenation of a number of small tables with identical layout into one larger table (like categories). Orphans would not be possible in this case, but bad references could happen. After 4 years in use, I've only ever seen that happen during development - I guess we were lucky. |
|
I agree that it doesn't look good. I did not design that database myself, I only write the software that uses it. Would it really be better to split the catalog_entries table into 63 very small tables, like: |
|
All of these 63 tables would look exactly alike; some of them really only have two rows, others have 40-50 rows. Simple enumeration wouldn't work, because the text fields dshort and dlong are necessary and can be edited by (some) users. |
#10
| ||||
| ||||
|
|
On 2008-09-16 15:23, --CELKO-- wrote: Any suggestions or hints would be very appreciated. This nightmare is called an EAV design; you can Google for the painful details. Youn will have to throw it all out and start over with a relational design. But if this has been used for about a year, you can expect to have orphans and bad data everywhere. |
|
Thanks for your reply. I have never implemented an EAV design myself, but I'm somewhat familiar with what it means, and what the main problems are. I wasn't aware that the design that I described would also qualify as EAV. It looked more like a concatenation of a number of small tables with identical layout into one larger table (like categories). Orphans would not be possible in this case, but bad references could happen. After 4 years in use, I've only ever seen that happen during development - I guess we were lucky. |
|
I agree that it doesn't look good. I did not design that database myself, I only write the software that uses it. Would it really be better to split the catalog_entries table into 63 very small tables, like: |
|
All of these 63 tables would look exactly alike; some of them really only have two rows, others have 40-50 rows. Simple enumeration wouldn't work, because the text fields dshort and dlong are necessary and can be edited by (some) users. |
![]() |
| Thread Tools | |
| Display Modes | |
| |