Re: caching table/query

From: Tsirkin Evgeny <tsurkin(at)mail(dot)jct(dot)ac(dot)il>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: Tsirkin Evgeny <tsurkin(at)jct(dot)ac(dot)il>, pgsql-admin(at)postgresql(dot)org
Subject: Re: caching table/query
Date: 2005-07-17 14:58:46
Message-ID: 42DA7226.5070808@mail.jct.ac.il
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


Michael Fuhr wrote:

>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.
>
>
Well, that is currently only development stage so i can't realy know if
there will be any perfomence problems.
But i am looking for a way to be sure i will not have one.And since i
already know what queries and tables i want
to cache those .Just saing to my boss " when we there will be
performance problems the postgresql will solve it "
would not do it.The case is that when runnig a test i am getting penalty
for requesting the table,of course the test
does query only once so i can't see the cache in work . What i realy
want is to say to postgres that the particular
table should be cached .
Thanks.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2005-07-17 15:53:27 Re: caching table/query
Previous Message Michael Fuhr 2005-07-17 14:06:55 Re: caching table/query