Skip site navigation (1) Skip section navigation (2)

speeding up table creation

From: "Rainer Mager" <rainer(at)vanten(dot)com>
To: <pgsql-performance(at)postgresql(dot)org>
Subject: speeding up table creation
Date: 2008-10-14 23:08:27
Message-ID: 000001c92e51$c42afcb0$4c80f610$@com (view raw or flat)
Thread:
Lists: pgsql-performance
I have an interesting performance improvement need. As part of the automatic
test suite we run in our development environment, we re-initialize our test
database a number of times in order to ensure it is clean before running a
test. We currently do this by dropping the public schema and then recreating
our tables (roughly 30 tables total). After that we do normal inserts, etc,
but never with very much data. My question is, what settings can we tweak to
improve performance is this scenario? Specifically, if there was a way to
tell Postgres to keep all operations in memory, that would probably be
ideal.

 

We actually tried running Postgres off of a RAM disk and this did help a
reasonable amount, but we're running under Windows and setting up the RAM
disk is a hassle and all of our developers would need to do it.

 

 

Any tips would be appreciated.

 

 

--Rainer

Responses

pgsql-performance by date

Next:From: Steve CrawfordDate: 2008-10-14 23:56:41
Subject: Re: speeding up table creation
Previous:From: ChrisDate: 2008-10-14 22:35:32
Subject: Re: Drupal and PostgreSQL - performance issues?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group