Re: Terrible Write Performance of a Stored Procedure - Mailing list pgsql-performance

From Alan Hodgson
Subject Re: Terrible Write Performance of a Stored Procedure
Date
Msg-id 200906261240.32580@hal.medialogik.com
Whole thread Raw
In response to Terrible Write Performance of a Stored Procedure  (Brian Troutwine <goofyheadedpunk@gmail.com>)
Responses Re: Terrible Write Performance of a Stored Procedure  (Brian Troutwine <goofyheadedpunk@gmail.com>)
List pgsql-performance
On Friday 26 June 2009, Brian Troutwine <goofyheadedpunk@gmail.com> wrote:
>  CREATE TABLE amazon_items (
>         asin         char(10) PRIMARY KEY,
>         locale       varchar(10) NOT NULL DEFAULT 'US',
>         currency_code char(3) DEFAULT 'USD',
>         isbn         char(13),
>         sales_rank   integer,
>         offers       text,
>         offer_pages  integer DEFAULT 10,
>         offers_last_updated timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
>         UNIQUE (asin, locale)
>  );
>

Indexes are good things. Try them. Particularly on the isbn field.

--
Overshoot = http://www.theoildrum.com/files/evoltuion_timeline.JPG

pgsql-performance by date:

Previous
From: Brian Troutwine
Date:
Subject: Terrible Write Performance of a Stored Procedure
Next
From: Merlin Moncure
Date:
Subject: Re: Terrible Write Performance of a Stored Procedure