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

Extracted profile picture request from contacts.upsert function #406

Merged

Conversation

judsonjuniorr
Copy link
Contributor

With this change, first, we add all contacts to the database to improve the response time when the user fetches the contact list. After saving everything to the database, we then call another event to update the profile pictures for all contacts that have already been saved.

The contact save event occurred from 2:09.341 (m:ss.mmm):
CleanShot 2024-02-07 at 17 00 48

To 18.367ms:
CleanShot 2024-02-07 at 17 53 18

And after that it takes the time required to update all the profile pictures

This tests has been made with 863 contacts

@DavidsonGomes DavidsonGomes merged commit b0e956c into EvolutionAPI:develop Feb 8, 2024
@judsonjuniorr judsonjuniorr deleted the contact-upsert-improvement branch February 12, 2024 15:07
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