Re: Terrible Write Performance of a Stored Procedure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday 26 June 2009, Brian Troutwine <goofyheadedpunk@xxxxxxxxx> 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

-- 
Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance

[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux