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

New server side endpoint for getting (all) mutations, which provides data in chunks #617

Merged
merged 6 commits into from
Oct 8, 2024

Conversation

theosanderson
Copy link
Owner

@theosanderson theosanderson commented Oct 8, 2024

The backend provides a list of all the mutations present in the tree initially. Otherwise, mutations are referred to by numeric ID. In #613 Angie Hinrichs describes a problem whereby for trees for very large organisms, when encoded in JSON the list of mutations is more than 1 GB which is more than the JS string limit. This imposes a number of problems.

This PR mitigates some of these problems. Previously the mutations were returned as part of the /config endpoint. Now we create a new additional endpoint /mutations/ that provides chunked data with an event stream so mutations can be processed in batches rather than needing to handle a 1 GB string.

There is a separate issue in terms of actually reading in the mutations, which are in the first line of the JSONL file. That is being explored in #614.

Copy link

vercel bot commented Oct 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
cov2tree ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 8, 2024 1:42pm

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.

1 participant