From: | "Tim Hart" <tjhart(at)mac(dot)com> |
---|---|
To: | <roy(at)silicontao(dot)com>, <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Is there a way to run tables in RAM? |
Date: | 2006-07-13 21:08:50 |
Message-ID: | 004601c6a6c0$8b732a70$1d3210ac@hartt |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I can't say for certain from the detail you've given, but partial indexes
may be an acceptable solution to your problem.
http://www.postgresql.org/docs/8.1/interactive/indexes-partial.html
_____
From: pgsql-general-owner(at)postgresql(dot)org
[mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of Roy Souther
Sent: Thursday, July 13, 2006 12:45 PM
To: pgsql-general(at)postgresql(dot)org
Subject: [GENERAL] Is there a way to run tables in RAM?
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.
Is there anyway that I can move a few hundred records of the table into RAM
and work on it there, it would be much faster.
Is there anyway to create a temporary table that will only exist in RAM and
not be written to the hard drive? Or do temporary tables already do that?
If I can use a temporary table this way is there any simple way to merge the
changes back into the original table?
Royce Souther <mailto:roy(at)SiliconTao(dot)com>
www.SiliconTao.com
Let Open Source help your business move beyond.
For security this message is digitally authenticated by GnuPG
<http://www.gnupg.org> .
From | Date | Subject | |
---|---|---|---|
Next Message | Joseph Shraibman | 2006-07-13 21:22:04 | Re: How come index isn't being used when query by function return |
Previous Message | Merlin Moncure | 2006-07-13 21:01:03 | Re: How come index isn't being used when query by function return value? |