Re: 8.4.1 ubuntu karmic slow createdb

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: 8.4.1 ubuntu karmic slow createdb
Дата
Msg-id hhbglj$2vc$1@ger.gmane.org
обсуждение исходный текст
Ответ на Re: 8.4.1 ubuntu karmic slow createdb  (Michael Clemmons <glassresistor@gmail.com>)
Список pgsql-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
newdatabase. 

Thomas



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: [HACKERS] Faster CREATE DATABASE by delaying fsync (was 8.4.1 ubuntu karmic slow createdb)
Следующее
От: Greg Stark
Дата:
Сообщение: Re: Faster CREATE DATABASE by delaying fsync (was 8.4.1 ubuntu karmic slow createdb)