Re: Postgresql "FIFO" Tables, How-To ?

Поиск
Список
Период
Сортировка
От Dmitry Tkach
Тема Re: Postgresql "FIFO" Tables, How-To ?
Дата
Msg-id 3F158ED9.2070505@openratings.com
обсуждение исходный текст
Ответ на Re: Postgresql "FIFO" Tables, How-To ?  ("Kirill Ponazdyr" <softlist@codeangels.com>)
Список pgsql-general
>
>
>
>Ouch, this means that for every insert we would have to trigger a
>procedure which will:
>
>COUNT
>IF > Limit
>DELETE OLDEST
>
>This would be pretty much damn ressource intensive on a table with million
>of records, would not it ?
>
>

You can keep the count in a table on the side, and have it updated by
the same trigger (after insert or delete)...

Dima



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

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: ODBC query problem
Следующее
От: "Maksim Likharev"
Дата:
Сообщение: Re: ODBC query problem