[Db] [mySQL] se non c è crealo!

Angelo Galleja angelo.galleja a email.it
Mer 15 Nov 2006 17:20:31 CET


Cristiano Verondini ha scritto:
> 
>> "The biggest disadvantage for intelligent keys, and a corresponding
>> advantage for surrogate keys, is that primary keys are hard to change.
>> Whenever a primary key changes in value, or columns are added to or
>> dropped from a primary key, the effects cascade down through foreign
>> key relationships.
>> Intelligent keys suffer from this problem because not only are they
>> used as primary and foreign keys but they also have some business
>> meaning associated with them. When the business changes, so do the 
>> primary key values or structure,
>> with all the problems associated with such a change.
>>
>> questo non è assolutamente uno svantaggio ed è palese:
>> la realtà cambia -> i dati che rappresentano la realtà cambiano
> 
>    Quello che intende è che se la realtà cambia e le tue relazioni sono 
> basate su un dato che cambia, gestire il cambiamento è, tecnicamente 
> parlando, pain in the ass! :)

    e perchè? anche senza l'aiuto del database si risolve con un paio di update ...
non vedo il problema

    vuoi mettere avere dei dati che rispecchiano la realtà?


Maggiori informazioni sulla lista Db