Re: Help: massive parallel update to the same table
От | Nicholson, Brad (Toronto, ON, CA) |
---|---|
Тема | Re: Help: massive parallel update to the same table |
Дата | |
Msg-id | 2626AEE4839D064CB0472A3814DC403F46D2081335@GVW1092EXB.americas.hpqcorp.net обсуждение исходный текст |
Ответ на | Help: massive parallel update to the same table (Red Maple <redmapleleaf@gmail.com>) |
Список | pgsql-performance |
>From: pgsql-performance-owner@postgresql.org [mailto:pgsql-performance-owner@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. Eachclient only make update to its own row in the table. So far >I am only seeing one core out of eight cores on my serverbeing active which tells me that the update is being done serial instead of being parallel. Do you know if there isa 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 acrossmultiple cores, you need to use multiple DB connections. Be careful if/when you restructure things to filter theserequests into a reasonable number of backend DB connections - turning a huge number of clients loose against a DB isnot going end well. Brad.
В списке pgsql-performance по дате отправления: