We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The initial implementation of request-body validation uses the more convenient but significantly less-performant API from AJV:
https://github.com/strongloop/loopback-next/blob/34eba3498528fe70fa9e64e8582d30a5b255e35b/packages/rest/src/validation/request-body.validator.ts#L93-L103
As a result, a typical POST (create) request is 10x slower than a GET (find) request.
We should rework our validation to cache pre-compiled AJV validators, see docs.
RouteEntry
The text was updated successfully, but these errors were encountered:
hacksparrow
No branches or pull requests
The initial implementation of request-body validation uses the more convenient but significantly less-performant API from AJV:
https://github.com/strongloop/loopback-next/blob/34eba3498528fe70fa9e64e8582d30a5b255e35b/packages/rest/src/validation/request-body.validator.ts#L93-L103
As a result, a typical POST (create) request is 10x slower than a GET (find) request.
We should rework our validation to cache pre-compiled AJV validators, see docs.
RouteEntry
class.Acceptance criteria
The text was updated successfully, but these errors were encountered: