| От | Richard Broersma Jr |
|---|---|
| Тема | Re: Rule vs Trigger |
| Дата | |
| Msg-id | 429554.53548.qm@web31801.mail.mud.yahoo.com обсуждение исходный текст |
| Ответ на | Rule vs Trigger ("Alfred Zhao" <rongkai.zhao@gmail.com>) |
| Список | pgsql-general |
--- Alfred Zhao <rongkai.zhao@gmail.com> wrote: > Suppose I want to update a statistics table S after an insertion into an > activity table A. In order to update S automatically, I can either create a > rule on A or create an after trigger on A. What's the performance > implication on using rule vs trigger? Thanks in advance. My understanding is that Triggers offer better performance than rules do. However, one important advantage of triggers over rules is that rules are not able to correctly handle DML statements that affects more than one record in a single statement. Regards, Richard Broersma Jr.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера