pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steinar H. Gunderson <sgunderson@bigfoot.com>
To: pgsql-performance@postgresql.org
Subject: Re: Slow insert
Date: Sat, 11 Dec 2004 02:45:28 +0100
Message-ID: <20041211014528.GA16264@uio.no> (raw)
In-Reply-To: <41B66A0B.1090003@familyhealth.com.au>
References: <41B66A0B.1090003@familyhealth.com.au>

On Wed, Dec 08, 2004 at 10:42:19AM +0800, Christopher Kings-Lynne wrote:
> Why would an INSERT ever be really slow?  This is what I see a lot of in 
> our site logs:
> 
> Dec  5 15:57:48 marshall postgres[19599]: [3-1] LOG:  duration: 
> 13265.492 ms  statement: INSERT INTO users_sessions (sid, cobrand_id, 
> uid) VALUES ('145982ac39e1d09fec99cc8a606155e7', '1', '0')
> 
> 13 seconds to insert a single row!

Do you have a foreign key or other check which could be really slow?

/* Steinar */
-- 
Homepage: http://www.sesse.net/



view thread (8+ messages)

Message-ID: <20041211014528.GA16264@uio.no>
Permalink:  ../20041211014528.GA16264@uio.no/
Also on:    postgresql.org/message-id/20041211014528.GA16264@uio.no

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: sgunderson@bigfoot.com
  Subject: Re: Slow insert
  In-Reply-To: <20041211014528.GA16264@uio.no>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox