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

Characters endpoint performs poorly for plays with many characters #249

Open
cmil opened this issue May 31, 2024 · 0 comments
Open

Characters endpoint performs poorly for plays with many characters #249

cmil opened this issue May 31, 2024 · 0 comments

Comments

@cmil
Copy link
Member

cmil commented May 31, 2024

The performance of the /corpora/{corpusname}/plays/{playname}/characters endpoint degrades poorly for plays with a large number of characters. In the extreme case of https://dracor.org/api/v1/corpora/ger/plays/kraus-die-letzten-tage-der-menschheit/characters (925 characters) the request results in a gateway timeout. When requested directly from the eXist RESTXQ interface it takes more than 2min to complete.

While "Die letzten Tage der Menschheit" is certainly an edge case (Faust II with 189 characters still takes 10s), this performance issue currently makes the endpoint unusable for purposes like enhancing the network graphs (e.g. dracor-org/dracor-frontend#259).

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