Re: FOREIGN KEYS vs PERFORMANCE

Поиск
Список
Период
Сортировка
От PFC
Тема Re: FOREIGN KEYS vs PERFORMANCE
Дата
Msg-id op.s7vv4ex2cigqcu@apollo13
обсуждение исходный текст
Ответ на Re: FOREIGN KEYS vs PERFORMANCE  (Michael Glaesemann <grzm@myrealbox.com>)
Ответы Re: FOREIGN KEYS vs PERFORMANCE  ("Craig A. James" <cjames@modgraph-usa.com>)
Re: FOREIGN KEYS vs PERFORMANCE  ("Jim C. Nasby" <jnasby@pervasive.com>)
Список pgsql-performance
>>   I think this is an old question, but I want to know if it really is
>> well worth to not create some foreign keys an deal with the referential
>> integrity at application-level?????

    Trust me : do it in the application and you'll enter a world of hurt. I'm
doing it with some mysql apps, and it's a nightmare ; doing cascaded
delete's by hand, etc, you always forget something, you have to modify a
million places in your code everytime you add a new table, your ORM
bloats, you get to write cleanup cron scripts which take forever to run,
your website crashes etc.


В списке pgsql-performance по дате отправления:

Предыдущее
От: PFC
Дата:
Сообщение: Re: pgmemcache
Следующее
От: Markus Schaber
Дата:
Сообщение: Re: Better index stategy for many fields with few values