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

There is a GET request to fetch the avatar for every contact independently #3909

Open
ibahnasy opened this issue Apr 28, 2024 · 0 comments
Open
Labels

Comments

@ibahnasy
Copy link

Describe the bug

While scrolling contacts, it generates their avatars using the contact's initials and the Contacts app performs a GET request for every contact to fetch it's avatar which results in very slow rendering and high load on the server that consumes all of the PHP-FPM pool children (120) until the loading is completed.

BTW, I have more than 1000 contacts.

Steps to reproduce

  1. Open the Contacts app
  2. Scroll the contacts list and wit until it loads the avatars.

Expected behavior

There should be an option to disable generation of avatars using the contacts initials and use a generic avatar which should be fetched once for all contacts who have no photo.

This would save lots of CPU load and traffic, and will have fast page rendering.

Actual behavior

image

Contact version

5.5.3

Operating system

Ubuntu 24.04

PHP engine version

PHP 8.1

Web server

Nginx

Database

MariaDB

Additional info

Also using Redis, OPCache and APCu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant