Denormalized field

Поиск
Список
Период
Сортировка
От Robert James
Тема Denormalized field
Дата
Msg-id CAGYyBghm+4yOWMeMLkWeQvD7NLMVsFFKW2YKcqmJM=JRMYCkuA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Denormalized field  (Vik Fearing <vik.fearing@dalibo.com>)
Re: Denormalized field  (Luca Ferrari <fluca1978@infinito.it>)
Список pgsql-general
I have a slow_function.  My table has field f, and since slow_function
is slow, I need to denormalize and store slow_function(f) as a field.

What's the best way to do this automatically? Can this be done with
triggers? (On UPDATE or INSERT, SET slow_function_f =
slow_function(new_f) ) How?

Will creating an index on slow_function(f) do this?


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

Предыдущее
От: Robert James
Дата:
Сообщение: Postgres cron job
Следующее
От: John R Pierce
Дата:
Сообщение: Re: Postgres cron job