Dashboard MyLastChangedTickets slowing down znuny

Moderator: crythias

Post Reply
bfv
Znuny newbie
Posts: 3
Joined: 06 Oct 2023, 17:26
Znuny Version: 6.5.4
Real Name: Boris

Dashboard MyLastChangedTickets slowing down znuny

Post by bfv »

Hi all,

After following the upgrade process to upgrade from 6.0.x through to 6.5.5, we noticed that the agent dashboard was taking a very long time to display. Users also started receiving timeouts on other actions.

We found out that some queries on the database were taking an incredibly long time (3-5 mins), degrading database performance to the point where Znuny became unusable until we killed those problematic queries.

The query in question:

Code: Select all

SELECT ticket_id, MAX(change_time) max_t FROM ticket_history WHERE change_by = 'xxxx' GROUP BY ticket_id ORDER BY max_t desc LIMIT 10;
It is performed by a new dashboard widget introduced in Znuny 6.4.4, https://github.com/znuny/Znuny/pull/177

My questions:
  • Is there some kind of optimization I can run on the table in question (ticket_history) to speed up this query?
  • Is there a way to permanently disable some widgets? For now I've set the default for the dashboard to 0 but I'd like to remove it completely
  • Should I file a bug report for this?
root
Administrator
Posts: 3968
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Dashboard MyLastChangedTickets slowing down znuny

Post by root »

Hi,

There is a fix already on the way. It's part of the next release: https://github.com/znuny/Znuny/commit/7 ... b92eee4f55

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
bfv
Znuny newbie
Posts: 3
Joined: 06 Oct 2023, 17:26
Znuny Version: 6.5.4
Real Name: Boris

Re: Dashboard MyLastChangedTickets slowing down znuny

Post by bfv »

Thanks a lot for the work and the swift reply!
Post Reply