Re: Index speeds up one row table (why)?

Поиск
Список
Период
Сортировка
От Dave E Martin XXIII
Тема Re: Index speeds up one row table (why)?
Дата
Msg-id 3ED9A923.90500@dave.to
обсуждение исходный текст
Ответ на Re: Index speeds up one row table (why)?  (Dave E Martin XXIII <postgresql-to.dave@dave.to>)
Ответы Re: Index speeds up one row table (why)?  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-bugs
Rod Taylor wrote:

 >An 8 k page will hold approx 140 tuples based on your structure. So,
 >for every ~100 updates you'll want to run vacuum (regular, not full) on
 >the table

Alas, for this application, that means a vacuum once every 5 seconds or
so. I'll see if I can set up a separate little task to do that (I assume
at this rate, its better to just keep a connection open, than
setup/teardown). I don't suppose there is a way to get a trigger to do a
vacuum (which doesn't want to be in a transaction) (thinking it could
check for id mod 100=0 or something)? I also assume a few pages isn't
going to be that bad (just don't let it get to 11000 8).

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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Index speeds up one row table (why)?
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Bug in parser?