Re: Optimise PostgreSQL for fast testing - Mailing list pgsql-general

From Simon Riggs
Subject Re: Optimise PostgreSQL for fast testing
Date
Msg-id CA+U5nMKYGL06af53HOFqoHMuQUPfXdHvwqpPDuXsyRBmvAxBSw@mail.gmail.com
Whole thread Raw
In response to Re: Optimise PostgreSQL for fast testing  (Dmytrii Nagirniak <dnagir@gmail.com>)
List pgsql-general
On Fri, Mar 16, 2012 at 4:38 AM, Dmytrii Nagirniak <dnagir@gmail.com> wrote:

> To "fix" it I open a transaction before each test and roll it back at the
> end.
>
> Some numbers for ~700 tests.
>
> - Truncation: SQLite - 34s, PG - 76s.
> - Transaction: SQLite - 17s, PG - 18s.
>
> 2x speed increase for SQLite.
> 4x speed increase for PG.
>
> Hope that'll help some of you.

Did you try this? synchronous_commit = off

--
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

pgsql-general by date:

Previous
From: Alban Hertroys
Date:
Subject: Re: Problem for restoure data base Postgre
Next
From: "Albe Laurenz"
Date:
Subject: Re: how to measure wal_buffer usage