Skip to content

feat(mutations): Introducte mutatoinsNquadLimit #6561

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

Merged
merged 1 commit into from
Sep 26, 2020

Conversation

ashish-goswami
Copy link
Contributor

@ashish-goswami ashish-goswami commented Sep 23, 2020

Currently we don't have any limitation on number of NQuads that can be present in single mutations request.
This is creating OOM issues in some case. Specially in case of upserts, where we combine results from queries and use them
in mutations. In some case we have seen numbers of NQuads after expansion to be as large as 1 billion.
This PR introduces as way to limit those via option called mutations_nquad_limit. Default value for it is 1M.


This change is Reviewable

Copy link
Contributor

@manishrjain manishrjain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 3 of 3 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @vvbalaji-dgraph)

@ashish-goswami ashish-goswami merged commit a0187e9 into master Sep 26, 2020
@ashish-goswami ashish-goswami deleted the ashish/limit-nquads branch September 26, 2020 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants