Re: Design / Implementation problem

Поиск
Список
Период
Сортировка
От Jorge Godoy
Тема Re: Design / Implementation problem
Дата
Msg-id 87slc2y667.fsf@gmail.com
обсуждение исходный текст
Ответ на Design / Implementation problem  (Naz Gassiep <naz@mira.net>)
Список pgsql-general
Naz Gassiep <naz@mira.net> writes:

> that calculating the point
> balance on the fly is not an unfeasibly heavy duty calculation to be done at
> every page view?

One alternative to calculate it everytime is calculating it once a day.  If
there are calculations for today, then just read the calculated value.
Otherwise calculate it.

If the user earns more points, make an entry at the raw table (for the
expiration process) and increments today points.  Do the same for points
spent.



--
Jorge Godoy      <jgodoy@gmail.com>

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

Предыдущее
От: Naz Gassiep
Дата:
Сообщение: Re: Design / Implementation problem
Следующее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: plperl question: how to specifiy perl version?