pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steve Lane <slane@soliantconsulting.com>
To: pgsql-admin@postgresql.org
Subject: Indexes on RAM disk = insanity?
Date: Fri, 29 Jul 2005 11:32:28 -0400
Message-ID: <BF0FC44C.1F03C%slane@soliantconsulting.com> (raw)
In-Reply-To: <200507291425.j6TEP4028656@candle.pha.pa.us>

All:

We have a postgres 7.4 server where we're trying to achieve some speedups.
Right now, at least superficially, RAM appears to be the bottleneck -- lots
of swaps in and out.

There is another consultant beside myself in the mix and he asked this
question: can we put the database indexes on a RAM disk? Won't that speed
things up?

My first instinct is NEVER NEVER NEVER to put any database data in volatile
storage like that. But on second thought, I thought I'd ask. Is this crazy?
If one did  it, how would you handle repopulating the indexes if the RAM
disk were lost? Just have a shell script that would do that automatically?
Or will postgres 8 rebuild an index if it doesn't find it where it expects?

I recognize, or think I do, that PG 8 tablespaces would be required to
accomplish this.

Would this be insane? Has anyone done it?


--------
Steve Lane
Vice President
Soliant Consulting, Inc.
(312) 850-3830 (V)
(312) 850-3930 (F)
slane@soliantconsulting.com




view thread (6+ messages)  latest in thread

Message-ID: <BF0FC44C.1F03C%slane@soliantconsulting.com>
Permalink:  ../BF0FC44C.1F03C%25slane@soliantconsulting.com/
Also on:    postgresql.org/message-id/BF0FC44C.1F03C%slane@soliantconsulting.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: slane@soliantconsulting.com
  Subject: Re: Indexes on RAM disk = insanity?
  In-Reply-To: <BF0FC44C.1F03C%slane@soliantconsulting.com>
  References: <200507291425.j6TEP4028656@candle.pha.pa.us> <BF0FC44C.1F03C%slane@soliantconsulting.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox