mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Fix Query performance for cc_side agent
For some unexplained reason, including the `"and cc_side != 'agent'` in the WHERE tanks the query performance from seconds to minutes on Postgres 9.4. It runs great on Postgresql 13. Reverting to the "blank content while writing the page content" approach for this value unless I can find the source of the problem. - Oh, also removed an unnecessary condition that prevents you from filtering by LOSE_RACE.
This commit is contained in:
@@ -823,7 +823,10 @@
|
||||
}
|
||||
|
||||
$content .= "</tr>\n";
|
||||
|
||||
//show agent originated legs only to those with the permission
|
||||
if (!permission_exists('xml_cdr_cc_agent_leg') && $row['cc_side'] == "agent") {
|
||||
$content = '';
|
||||
}
|
||||
//show the leg b only to those with the permission
|
||||
if ($row['leg'] == 'a') {
|
||||
echo $content;
|
||||
|
||||
Reference in New Issue
Block a user