Re: for help!

Поиск
Список
Период
Сортировка
От scott.marlowe
Тема Re: for help!
Дата
Msg-id Pine.LNX.4.33.0304151032440.18680-100000@css120.ihs.com
обсуждение исходный текст
Ответ на for help!  (linweidong <wdlin@sis.sh.cn>)
Ответы Re: for help!  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-performance
On Tue, 15 Apr 2003, linweidong wrote:

> Under this condition, I want get some useful suggestion from you. How to
> optimize the database?  How to improve the Count(*)? Because we  want to get
> the number of records in the recordset  we got.

Well, you can always use the trick of putting an on insert / delete
trigger on the table that maintains a single row table with the current
count.  That way, whenever a row is added or removed, the count is
updated.  this will slow down inserts and deletes a little, but TANSTAAFL.


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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: [GENERAL] Yet Another (Simple) Case of Index not used
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Do Views offer any performance advantage?