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

Improvement on whatsapp number validation #402

Merged

Conversation

judsonjuniorr
Copy link
Contributor

Currently, for every number checked, a database call is made to verify if the JID is saved and to return the name, but this can be improved to check everything only once.

In the current code, checking 92 numbers took 750ms, as shown here:
CleanShot 2024-02-07 at 08 46 37@2x

With the current improvement, checking the same 92 numbers results in a 321ms request:
CleanShot 2024-02-07 at 08 51 06

The more numbers you send, the slower it becomes.

@DavidsonGomes DavidsonGomes merged commit 32026d1 into EvolutionAPI:develop Feb 7, 2024
@judsonjuniorr judsonjuniorr deleted the improv-name-validation 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