pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: superman0920 <superman0920@gmail.com>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: about multiprocessingmassdata
Date: Wed, 04 Apr 2012 09:11:04 -0500
Message-ID: <4F7C10280200002500046B89@gw.wicourts.gov> (raw)
In-Reply-To: <201204041359218166912@gmail.com>
References: <201204041359218166912@gmail.com>

superman0920 <superman0920@gmail.com> wrote:
 
> i have a table which has 8500000 rows record, i run 30 threads to
> update the record.
> i find the database of processing data speed so slow, per thread
> updating 1000 rows need take 260s
> How to configure the database to make processing speed faster ? 
 
Performance issues are best addressed on the pgsql-performance list,
not pgsql-admin.  Before posting there, please read the following
page so that you can post enough information for people to make
useful suggestions:
 
http://wiki.postgresql.org/wiki/SlowQueryQuestions
 
For perspective, in benchmarks on my own machines I have seen
complex data-modifying transactions running at 3000 transactions per
second, and we have production systems applying millions of complex
transactions per day against tables with hundreds of millions of
rows while serving web applications running tens of millions of
queries.  So, my first thought is to wonder what the differences are
in your environment, and which of them might be causing problems. 
To figure that out, I need to know more about your environment.
 
-Kevin



view thread (2+ messages)

Message-ID: <4F7C10280200002500046B89@gw.wicourts.gov>
Permalink:  ../4F7C10280200002500046B89@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4F7C10280200002500046B89@gw.wicourts.gov

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, superman0920@gmail.com
  Subject: Re: about multiprocessingmassdata
  In-Reply-To: <4F7C10280200002500046B89@gw.wicourts.gov>
  References: <201204041359218166912@gmail.com> <4F7C10280200002500046B89@gw.wicourts.gov>

* 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