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

Re: 8.4.1 ubuntu karmic slow createdb

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: 8.4.1 ubuntu karmic slow createdb
Date: 2009-12-28 23:57:42
Message-ID: hhbglj$2vc$1@ger.gmane.org (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-performance
Michael Clemmons wrote on 11.12.2009 23:52:
> Thanks all this has been a good help.
> I don't have control(or easy control) over unit tests creating/deleting
> databases since Im using the django framework for this job.  Createdb
> takes 12secs on my system(9.10 pg8.4 and ext4)  which is impossibly slow
> for running 200unittests.

I wonder if you could simply create one database, and then a new schema for each of the tests.

After creating the schema you could alter the search_path for the "unit test user" and it would look like a completely new database.

Thomas




In response to

pgsql-performance by date

Next:From: Greg StarkDate: 2009-12-29 00:27:29
Subject: Re: Faster CREATE DATABASE by delaying fsync (was 8.4.1 ubuntu karmic slow createdb)
Previous:From: Andres FreundDate: 2009-12-28 23:31:56
Subject: Re: [HACKERS] Faster CREATE DATABASE by delaying fsync (was 8.4.1 ubuntu karmic slow createdb)

pgsql-hackers by date

Next:From: Robert HaasDate: 2009-12-29 00:01:13
Subject: Re: Admission Control Policy
Previous:From: Kevin GrittnerDate: 2009-12-28 23:55:32
Subject: Re: special cases of true serializability

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