Re: caching table/query

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: caching table/query
Дата
Msg-id 20050717140655.GA9637@winnie.fuhr.org
обсуждение исходный текст
Ответ на caching table/query  (Tsirkin Evgeny <tsurkin@mail.jct.ac.il>)
Ответы Re: caching table/query
Список pgsql-admin
On Sun, Jul 17, 2005 at 02:00:28PM +0300, Tsirkin Evgeny wrote:
>
> I have several pretty little tables (~300 - 400 records) which are
> queried very frequently.
> I would like to make postrgres be aware of this and do a in memory cache
> for it .

PostgreSQL maintains a buffer cache in shared memory; if you enable
statistics gathering then you can see how effective it is for the
tables in question:

http://www.postgresql.org/docs/8.0/static/monitoring-stats.html

If the tables are small and you're querying them frequently, and
if shared_buffers is adequately sized, then I'd expect most or all
queries to be satisfied from the buffer cache.  Those that aren't
might still be satisfied from the OS's cache.

Are you experiencing performance problems?  Presumably that's the
real problem you're trying to solve.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/


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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: FATAL: invalid value for parameter "wal_sync_method":
Следующее
От: Chris Travers
Дата:
Сообщение: Re: caching table/query