From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
---|---|
To: | M Tarkeshwar Rao <m(dot)tarkeshwar(dot)rao(at)ericsson(dot)com>, "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Postgres cursor taking 2 hrs to update the table |
Date: | 2019-12-24 16:43:15 |
Message-ID: | b58483d0-21fe-ac2a-3abd-024ccb1b4836@aklaver.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 12/24/19 2:32 AM, M Tarkeshwar Rao wrote:
> Hi,
>
> I have the 10 application processes(each process having 12 threads and
> each of have updating 8 million rows in the shared memory) which are
> reading the data from single postgres database. We are using database
> cursors in C++ to fetch the data and updating the shared memory. There
> is the timer attached, where all the processor threads going to fetch
> the data.
>
> The issue is that sometimes it is fetching all the data in few seconds
> and sometimes it is taking 2 hrs.
>
> /What could be the issue. Can you please guide me to resolve the issue?/
By providing more information:
1) Postgres version?
2) OS and version?
3) Where the client and server are relative to each other?
4) Any relevant information from the Postgres log?
You might also look at:
https://www.postgresql.org/docs/11/auto-explain.html
>
> Regards
>
> Tarkeshwar
>
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Ron | 2019-12-24 16:44:03 | Re: Date created for tables |
Previous Message | Adrian Klaver | 2019-12-24 16:39:42 | Re: Date created for tables |