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

Fix #363: add max_results_by_edge query param #375

Closed
wants to merge 2 commits into from

Conversation

ericz1803
Copy link
Contributor

@ericz1803 ericz1803 commented Dec 16, 2021

Fixes #363.
Also merge: biothings/call-apis.js#36 and biothings/bte_trapi_query_graph_handler#82

Added max_results_by_edge query parameter to all v1 endpoints. It defaults to 1000 and can be set to -1 to disable the results limiting behavior. By default, it is turned off.

How the limiting works: In call-apis, after each query bucket, it checks the results array to see if the number of results has exceeded the maxResultsPerEdge. If it has, stop further querying and truncate the results array down to that number. These results are before filtering/intersecting.

@colleenXu
Copy link
Collaborator

DO NOT MERGE: see discussion in the linked issue

@tokebe
Copy link
Member

tokebe commented May 12, 2022

@colleenXu Should this and related PRs be closed?

@colleenXu
Copy link
Collaborator

I think it's up to the group, including @newgene and @andrewsu to discuss the issue #363 and whether this code + approach needs some more development / refinement or not...

@tokebe
Copy link
Member

tokebe commented Dec 21, 2022

Closing as replacement implementation is under development.

@tokebe tokebe closed this Dec 21, 2022
@tokebe tokebe deleted the exploding-queries branch October 25, 2023 20:05
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.

Graceful exit before full execution for queries that would have very large responses
3 participants