Re: Is there a way to run tables in RAM?

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Roy Souther <roy(at)silicontao(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Is there a way to run tables in RAM?
Date: 2006-07-13 18:39:53
Message-ID: 20060713183953.GC14177@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2006-07-13 18:51:57 Re: Is there a way to run tables in RAM?
Previous Message Joe Conway 2006-07-13 18:29:11 Re: Trying to connect to an Oracle instance...