Re: [pgAdmin][RM5794] Excessive CPU usage while browser is idle - Mailing list pgadmin-hackers

From Aditya Toshniwal
Subject Re: [pgAdmin][RM5794] Excessive CPU usage while browser is idle
Date
Msg-id CAM9w-_nAgMea=F9Yk_psM0e=jDb9Q+Cqt3qUzgomNvnRTSOQzw@mail.gmail.com
Whole thread Raw
In response to Re: [pgAdmin][RM5794] Excessive CPU usage while browser is idle  (Akshay Joshi <akshay.joshi@enterprisedb.com>)
List pgadmin-hackers
Hi,

In the previous patch, I had changed the react state directly, which is not recommended and can cause unpredictable behavior. 
Attached patch changes the previous commit to avoid changing state directly.

Please review.

On Mon, Sep 7, 2020 at 6:48 PM Akshay Joshi <akshay.joshi@enterprisedb.com> wrote:
Thanks, patch applied.

On Mon, Sep 7, 2020 at 3:59 PM Aditya Toshniwal <aditya.toshniwal@enterprisedb.com> wrote:
Hi Hackers,

Attached is the patch to stop the indefinite growth of graph dataset. This has caused excessive CPU usage and the patch will reduce it.

Please review.

--
Thanks,
Aditya Toshniwal
pgAdmin hacker | Sr. Software Engineer | edbpostgres.com
"Don't Complain about Heat, Plant a TREE"


--
Thanks & Regards
Akshay Joshi
pgAdmin Hacker | Sr. Software Architect
EDB Postgres
Mobile: +91 976-788-8246



--
Thanks,
Aditya Toshniwal
pgAdmin hacker | Sr. Software Engineer | edbpostgres.com
"Don't Complain about Heat, Plant a TREE"
Attachment

pgadmin-hackers by date:

Previous
From: Akshay Joshi
Date:
Subject: Re: Patch for SonarQube code scan fixes.
Next
From: Akshay Joshi
Date:
Subject: pgAdmin 4 commit: 1) Changing the state of the react directly is not re