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

Optimize Dandiset List Endpoint #1503

Merged
merged 5 commits into from
Mar 1, 2023
Merged

Optimize Dandiset List Endpoint #1503

merged 5 commits into from
Mar 1, 2023

Conversation

jjnesbitt
Copy link
Member

This PR does a couple of things:

  1. Updates the function for retrieving a version's root paths to use the path field, instead of a count of parent links
  2. Updates the dandiset list endpoint to make use of already aggregated asset paths information, instead of summing and counting all assets in a version on every request.

dandiapi/api/views/dandiset.py Outdated Show resolved Hide resolved
dandiapi/api/views/dandiset.py Show resolved Hide resolved
dandiapi/api/models/asset_paths.py Outdated Show resolved Hide resolved
jjnesbitt and others added 2 commits March 1, 2023 11:38
Co-authored-by: Mike VanDenburgh <37340715+mvandenburgh@users.noreply.github.com>
@jjnesbitt jjnesbitt merged commit 6292ec9 into master Mar 1, 2023
@jjnesbitt jjnesbitt deleted the optimize-dandiset-list branch March 1, 2023 17:13
@dandibot
Copy link
Member

🚀 PR was released in v0.3.22 🚀

@dandibot dandibot added the released This issue/pull request has been released. label Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants