Re: Is there a way to run tables in RAM? - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: Is there a way to run tables in RAM?
Date
Msg-id 20060713183953.GC14177@svana.org
Whole thread Raw
In response to Is there a way to run tables in RAM?  (Roy Souther <roy@silicontao.com>)
List pgsql-general
On Thu, Jul 13, 2006 at 11:44:43AM -0600, Roy Souther wrote:
> I would like to know if there is anyway to move a section of some tables
> into RAM to work on them.
>
> I have large table, about 700MB or so and growing. I also have a bizarre
> collection of queries that run hundreds of queries on a small section of
> this table. These queries only look at about 100 or so records at a time
> and they run hundreds of queries on the data looking for patterns. This
> causes the program to run very slowly because of hard drive access time.
> Some times it needs to write changes back to the records it is working
> with.

Increase your shared buffers so it can hold all the data at once. Even
then I'm surprised, because any excess data should have been buffered
by the OS. Have you looked at what the traffic actually is that is
being generated?

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Attachment

pgsql-general by date:

Previous
From: Joe Conway
Date:
Subject: Re: Trying to connect to an Oracle instance...
Next
From: Chris Bowlby
Date:
Subject: SPI based table locks.