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
I basically want to know if all of the 3 are run is series or in parallel. I want to do this in parallel as that would make it more fast. I think they are in parallel already but not sure, so asking. Please let me know fast.
If they are not in parallel is it possible to make them parallel using async module?
The text was updated successfully, but these errors were encountered:
They are not in parallel. Unless the validation is an asynchronous function or something that is I/O blocking, there would be no performance gain by trying to do this in parallel. In fact, there would be less efficient because of the additional overhead of using async and managing those callbacks.
I want to know if each validation is done in parallel or in series?
Lets use your example
req.checkBody('postparam', 'Invalid postparam').notEmpty().isInt();
req.assert('getparam', 'Invalid getparam').isInt();
req.assert('urlparam', 'Invalid urlparam').isAlpha();
I basically want to know if all of the 3 are run is series or in parallel. I want to do this in parallel as that would make it more fast. I think they are in parallel already but not sure, so asking. Please let me know fast.
If they are not in parallel is it possible to make them parallel using async module?
The text was updated successfully, but these errors were encountered: