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

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Is there a way to run tables in RAM?
Дата
Msg-id 20060713183953.GC14177@svana.org
обсуждение исходный текст
Ответ на Is there a way to run tables in RAM?  (Roy Souther <roy@silicontao.com>)
Список 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.

Вложения

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

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: Trying to connect to an Oracle instance...
Следующее
От: Chris Bowlby
Дата:
Сообщение: SPI based table locks.