Changeset 686

Show
Ignore:
Timestamp:
08/26/07 19:41:50 (1 year ago)
Author:
ioguix
Message:

Chapitre "Foreign Keys"

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • materials/advocacy/trunk/Why_PostgreSQL_Instead_of_MySQL.txt

    r681 r686  
    212212Clés Étrangère 
    213213 
    214 Proper implementation of design techniques like Database Normalization rely on the ability of the database to use Foreign keys to map relationships between tables. In MySQL, foreign keys are only supported with InnoDB. One problem with their implementation is that it is limited and will silently ignore some standard syntax. For example, when creating a table, even in the upcoming 5.1 release of MySQL "the CHECK clause is parsed but ignored by all storage engines". The basic design philosophy of PostgreSQL is to produce errors or warnings in similar situations where an operation is ambiguous or unsupported. 
     214// Proper implementation of design techniques like Database Normalization rely on the ability of the database to use 
     215// Foreign keys to map relationships between tables. In MySQL, foreign keys are only supported with InnoDB. One problem  
     216// with their implementation is that it is limited and will silently ignore some standard syntax. For example, when 
     217// creating a table, even in the upcoming 5.1 release of MySQL "the CHECK clause is parsed but ignored by all storage  
     218// engines". The basic design philosophy of PostgreSQL is to produce errors or warnings in similar situations where an  
     219// operation is ambiguous or unsupported. 
     220L'implémentation correcte des techniques de conception comme les formes normales repose sur la capacité de la base de  
     221données à utiliser les Clés Étrangères pour représenter les relations entre les tables. Avec MySQL, seul InnoDB supporte 
     222les clés étrangères. Un problème avec de leur implémentation est qu'elle est limitée et ignorera silencieusement 
     223plusieurs syntaxes standard. Par exemple, lors de la création d'une table, même avec la prochaine version 5.1 de MySQL 
     224"la clause CHECK est analysée mais ignorée par tous les moteurs de stockages". À l'origine de PostgreSQL, la philosophie 
     225de conception à été de produire des erreurs ou des avertissements dans les situations similaires où une opération est 
     226ambiguë ou non supportée. 
     227 
    215228Transactional DDL 
    216229