Have noticed massive slowness on loading dashboard and other pages.
Initially thought it was due to my call load where I have more than 120K calls per day with 4.45 min median call time
I did the needful on mysql db optimization and was having 99% table open cache efficiency and 91% innodb buffer pool usage.
Then did a mysql client connections checkup and did an analysis while traversing through the pages
Found that common_model.php near line 205 → $data_array[‘no_of_calls’] = $this->db_model->getSelect('(ROUND(sum(billseconds) / 60.0, 0) * 60) query popping up on all web-page client connections.
It was taking more than 8s to execute so the pages
7.Then I disabled calling on get_dashboard_details() on line number 35 and tested.
Issues solved.
Now tell me how the hell I am raising a PR without knowing the actual use of the function ? I was just providing some of my findings just to help Original owner of the code and community.
Being effective for my problem does not means it is correct and PR worthy isn’t it ?