Re: PG rules! (RULES being the word ;->)

Поиск
Список
Период
Сортировка
От Dr. Evil
Тема Re: PG rules! (RULES being the word ;->)
Дата
Msg-id 20010718183310.16256.qmail@sidereal.kz
обсуждение исходный текст
Ответ на Re: Re: PG rules! (RULES being the word ;->)  (Janning Vygen <vygen@planwerk6.de>)
Список pgsql-general
> this way i have to implement my businees logic twice. inside the
> database and in the middleware. I dont think that this is very good.

Sometimes implenting the business logic twice is the right thing to
do.  For instance, let's say we have a financial application, and we
need to calculate account balances (let's say it's non-trivial to do
this).  It seems like it would be good to have the middleware
calculate it, and have PG calculate it.  That way, if there is a bug
somewhere in the routine that does the calculation, it will be caught.

It all depends on what you're doing.

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