You are here: Re: MySQL Triggers question « PHP SQL « IT news, forums, messages
Re: MySQL Triggers question

Posted by ZeldorBlat on 10/04/06 01:24

Jonas Smith wrote:
> On Sat, 30 Sep 2006 20:23:49 -0400, ZeldorBlat wrote
> (in article <1159662229.568323.198440@c28g2000cwb.googlegroups.com>):
>
> > Jonas Smith wrote:
> >> The first question is:
> >>
> >> Can the trigger be set to do the calculation only when the
> >> totalColumn is updated? The access column is updated quite often (as
> >> well as other columns) and to trigger the calculation any time any
> >> of the columns is updated would put undue load on the servers.
> >>
> >> Second question:
> >>
> >> What is the syntax for this kind of trigger?
> >
> > I don't think MySQL will let you define a trigger that only fires when
> > certain columns are updated (some other databases do).
>
> That's what I thought, I just needed the confirmation. And since this is
> the case, a trigger for this function is not worth the effort and will
> put undue load on the servers.

How do you know unless you try it? I'd honestly be surprised if it
truly presented a performance problem.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация