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

Metadata endpoint iterates over all trees with the same name #568

Closed
DavidMStraub opened this issue Nov 14, 2024 · 0 comments
Closed

Metadata endpoint iterates over all trees with the same name #568

DavidMStraub opened this issue Nov 14, 2024 · 0 comments
Assignees

Comments

@DavidMStraub
Copy link
Member

I realized that the metadata endpoint becomes extremely slow in case of a multi tree setup, where many trees have the same database name (which is not required to be unique in Gramps). The reason is that the family_tree_summary method, which is only used to determine the database type, iterates over all trees and opens each one that matches the provided name.

@DavidMStraub DavidMStraub self-assigned this Nov 14, 2024
DavidMStraub added a commit to DavidMStraub/gramps-webapi that referenced this issue Nov 14, 2024
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

1 participant