You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good work @rooneyrulz ! While exploring your project, i have found that in user.js ( Route ), you have used .find method twice to check username and email which can cause your performance issues as executing .find twice will double the response time which is not recommended for large scale applications.
I think, you can create a new User object with user details and save them to database, it will return duplication errors if any and it is much faster then executing user.find() method twice.
Thanks
The text was updated successfully, but these errors were encountered:
Hi,
Good work @rooneyrulz ! While exploring your project, i have found that in user.js ( Route ), you have used .find method twice to check username and email which can cause your performance issues as executing .find twice will double the response time which is not recommended for large scale applications.
I think, you can create a new User object with user details and save them to database, it will return duplication errors if any and it is much faster then executing user.find() method twice.
Thanks
The text was updated successfully, but these errors were encountered: