Re: per table random-page-cost?

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: per table random-page-cost?
Дата
Msg-id 20091023013805.GB2240@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: per table random-page-cost?  (Greg Stark <gsstark@mit.edu>)
Список pgsql-hackers
Greg Stark escribió:

> There is another use case which perhaps needs to be addressed: if the
> user has some queries which are very latency sensitive and others
> which are not latency sensitive. In that case it might be very
> important to keep the pages of data used by the high priority queries
> in the cache. That's something we should have a high level abstract
> interface for, not depend on low level system features.

Yeah.

I wonder if the right thing for this is to mark the objects (pages), or
the queries, as needing special attention.  If you mark the queries,
then perhaps they could behave slightly differently like adding +2 or so
to buffer usage count instead of +1, so that they take longer than a
normal buffer in getting evicted.  This way you don't force the admin to
figure out what's the right size ratio for different named caches, etc.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: client_lc_messages
Следующее
От: João Eugenio Marynowski
Дата:
Сообщение: Re: table corrupted