![]() | |
#21
| |||
| |||
|
|
On 2008-09-24 06:08, --CELKO-- wrote: No need to throw a perfectly good design out because of programmer incompetence. Better throw the programmer away :-) Throw away the idiot who did the EAV. Thank you both for your replies, although I'm a little surprised at the heated comments. The programmer in this project (not the database |
|
designer) is me, and see no reason to throw myself away or consider myself incompetent for having to work with a certain kind of data model. I saw what I thought was a dubious design choice, and asked for opinions, that's all. The rest of the schema is designed very well. |
|
We're not going to throw anybody away. |
#22
| |||
| |||
|
|
On 2008-09-24 06:08, --CELKO-- wrote: No need to throw a perfectly good design out because of programmer incompetence. Better throw the programmer away :-) Throw away the idiot who did the EAV. Thank you both for your replies, although I'm a little surprised at the heated comments. The programmer in this project (not the database |
|
designer) is me, and see no reason to throw myself away or consider myself incompetent for having to work with a certain kind of data model. I saw what I thought was a dubious design choice, and asked for opinions, that's all. The rest of the schema is designed very well. |
|
We're not going to throw anybody away. |
#23
| |||
| |||
|
|
Conrad Lender <crlender (AT) yahoo (DOT) com> wrote: On 2008-09-24 06:08, --CELKO-- wrote: Throw away the idiot who did the EAV. Thank you both for your replies, although I'm a little surprised at the heated comments. The programmer in this project (not the database It is a mistake that people keep making. We see postings about it here over and over and over. Did you know that Russian Roulette has an over 80% success rate? Would you like to play? I advise against it and EAV. [...] When you know, EAV is not dubious (doubtful). It is just plain bad. |
#24
| |||
| |||
|
|
Conrad Lender <crlender (AT) yahoo (DOT) com> wrote: On 2008-09-24 06:08, --CELKO-- wrote: Throw away the idiot who did the EAV. Thank you both for your replies, although I'm a little surprised at the heated comments. The programmer in this project (not the database It is a mistake that people keep making. We see postings about it here over and over and over. Did you know that Russian Roulette has an over 80% success rate? Would you like to play? I advise against it and EAV. [...] When you know, EAV is not dubious (doubtful). It is just plain bad. |
#25
| |||
| |||
|
|
Conrad Lender <crlender (AT) yahoo (DOT) com> wrote: On 2008-09-24 06:08, --CELKO-- wrote: Throw away the idiot who did the EAV. Thank you both for your replies, although I'm a little surprised at the heated comments. The programmer in this project (not the database It is a mistake that people keep making. We see postings about it here over and over and over. Did you know that Russian Roulette has an over 80% success rate? Would you like to play? I advise against it and EAV. [...] When you know, EAV is not dubious (doubtful). It is just plain bad. |
#26
| ||||
| ||||
|
|
On 2008-09-25 01:12, Gene Wirchenko wrote: Conrad Lender <crlen... (AT) yahoo (DOT) com> wrote: On 2008-09-24 06:08, --CELKO-- wrote: Throw away the idiot who did the EAV. Thank you both for your replies, although I'm a little surprised at the heated comments. The programmer in this project (not the database * * *It is a mistake that people keep making. *We see postings about it here over and over and over. * * *Did you know that Russian Roulette has an over 80% success rate? * * *Would you like to play? * * *I advise against it and EAV. [...] * * *When you know, EAV is not dubious (doubtful). *It is just plain bad. I can see that a number of people have had bad experiences with EAV designs, and are vehemently opposed to the whole idea; I understand the reasons for this. However, I'm still not convinced that our two "catalog" tables can really be described as EAV. There was an implicit conclusion that the tables should be refactored, but no suggestions about how go about it. Allow me to rephrase my question: 1) When you have 63 groups of relatively static categorization options like I have described (all with the same fields, but belonging to semantically different categories), would it *really* be advisable to break that larger table up into 63 separate very small tables with the same column layout? |
|
2) With the added constraint checks from my previous post, is there any way that the data/references could possibly become inconsistent? |
|
3) How would you design a database where many of the entities can have distinct "types" in one or more fields (eg. a "status" field could have the values "old", "active", "in_review"), and these types need to have editable textual descriptions? Do you create small {entityname}_{typename} tables for each of those fields, each containing only a few rows? |
|
* - Conrad |
#27
| ||||
| ||||
|
|
On 2008-09-25 01:12, Gene Wirchenko wrote: Conrad Lender <crlen... (AT) yahoo (DOT) com> wrote: On 2008-09-24 06:08, --CELKO-- wrote: Throw away the idiot who did the EAV. Thank you both for your replies, although I'm a little surprised at the heated comments. The programmer in this project (not the database * * *It is a mistake that people keep making. *We see postings about it here over and over and over. * * *Did you know that Russian Roulette has an over 80% success rate? * * *Would you like to play? * * *I advise against it and EAV. [...] * * *When you know, EAV is not dubious (doubtful). *It is just plain bad. I can see that a number of people have had bad experiences with EAV designs, and are vehemently opposed to the whole idea; I understand the reasons for this. However, I'm still not convinced that our two "catalog" tables can really be described as EAV. There was an implicit conclusion that the tables should be refactored, but no suggestions about how go about it. Allow me to rephrase my question: 1) When you have 63 groups of relatively static categorization options like I have described (all with the same fields, but belonging to semantically different categories), would it *really* be advisable to break that larger table up into 63 separate very small tables with the same column layout? |
|
2) With the added constraint checks from my previous post, is there any way that the data/references could possibly become inconsistent? |
|
3) How would you design a database where many of the entities can have distinct "types" in one or more fields (eg. a "status" field could have the values "old", "active", "in_review"), and these types need to have editable textual descriptions? Do you create small {entityname}_{typename} tables for each of those fields, each containing only a few rows? |
|
* - Conrad |
#28
| ||||
| ||||
|
|
On 2008-09-25 01:12, Gene Wirchenko wrote: Conrad Lender <crlen... (AT) yahoo (DOT) com> wrote: On 2008-09-24 06:08, --CELKO-- wrote: Throw away the idiot who did the EAV. Thank you both for your replies, although I'm a little surprised at the heated comments. The programmer in this project (not the database * * *It is a mistake that people keep making. *We see postings about it here over and over and over. * * *Did you know that Russian Roulette has an over 80% success rate? * * *Would you like to play? * * *I advise against it and EAV. [...] * * *When you know, EAV is not dubious (doubtful). *It is just plain bad. I can see that a number of people have had bad experiences with EAV designs, and are vehemently opposed to the whole idea; I understand the reasons for this. However, I'm still not convinced that our two "catalog" tables can really be described as EAV. There was an implicit conclusion that the tables should be refactored, but no suggestions about how go about it. Allow me to rephrase my question: 1) When you have 63 groups of relatively static categorization options like I have described (all with the same fields, but belonging to semantically different categories), would it *really* be advisable to break that larger table up into 63 separate very small tables with the same column layout? |
|
2) With the added constraint checks from my previous post, is there any way that the data/references could possibly become inconsistent? |
|
3) How would you design a database where many of the entities can have distinct "types" in one or more fields (eg. a "status" field could have the values "old", "active", "in_review"), and these types need to have editable textual descriptions? Do you create small {entityname}_{typename} tables for each of those fields, each containing only a few rows? |
|
* - Conrad |
![]() |
| Thread Tools | |
| Display Modes | |
| |