Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize UpdateFolderCounters Job #4374

Conversation

mahavirn
Copy link
Contributor

Problem:

In cases where a mailbox is very active and has numerous custom folders, a high number of jobs are dispatched to update folder counts. Additionally, multiple duplicate jobs are being dispatched for the same folder, leading to unnecessary load on the system.

Solution:

A locking mechanism has been implemented to ensure that if an UpdateFolderCounters job for a folder already exists, no duplicate jobs are dispatched for the same folder ID.

Result:

This change has significantly reduced the load on the queue system and is functioning smoothly.

@mahavirn
Copy link
Contributor Author

@mahavirn
Copy link
Contributor Author

Issue: #4289

@freescout-help freescout-help merged commit 8024c72 into freescout-help-desk:master Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants