>From: pgsql-performance-ow...@postgresql.org 
>[mailto:pgsql-performance-ow...@postgresql.org] On Behalf Of Red Maple
>Sent: Friday, March 18, 2011 9:05 AM
>To: pgsql-performance@postgresql.org
>Subject: [PERFORM] Help: massive parallel update to the same table
>
>Hi all,
>
>Our system has a postgres database that has a table for statistic which is 
>updated every hour by about 10K clients. Each client only make update to its 
>own row in the table. So far >I am only seeing one core out of eight cores on 
>my server being active which tells me that the update is being done serial 
>instead of being parallel. Do you know if there is a way >for me to make these 
>independent updates happen in parallel?
>
>Thank you, your help is very much appreciated!

If they are all happening on one core, you are probably using one DB connection 
to do the updates.  To split them across multiple cores, you need to use 
multiple DB connections.  Be careful if/when you restructure things to filter 
these requests into a reasonable number of backend DB connections - turning a 
huge number of clients loose against a DB is not going end well.  

Brad.

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

Reply via email to