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

Member hydration should use a members query instead of querying for every resource #227

Open
1 task
tpendragon opened this issue Nov 11, 2024 · 0 comments
Open
1 task

Comments

@tpendragon
Copy link
Contributor

Reasoning

Right now if a folder has 600 pages, it hydrates by sending 600 postgres queries. We can make that 1.

Acceptance Criteria

  • Getting members for hydration takes only 1 query.

First step

Look at https://github.com/pulibrary/figgy/blob/ex_figgy/ex_manifest/apps/ex_manifest_api/lib/ex_manifest_api/resource/query.ex#L6-L21 for inspiration, where we gathered up members for an old Elixir-based manifest generation service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants