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

Add middleware cache for Content Search API parsed IIIF Manifest. #457

Open
DiegoPino opened this issue Aug 1, 2024 · 0 comments
Open
Assignees
Labels
Custom Entities Drupal 10 Upgrade economy enhancement New feature or request IIIF Specs/Manifests/Implementations metadata Meta(l) data Search and Discovery Mess around and find out Twig Twig template processing
Milestone

Comments

@DiegoPino
Copy link
Member

DiegoPino commented Aug 1, 2024

What?

All cool/nice/smooth when searching across 200 pages. Super slow on 767+ pages *also... that is a large manifest people. Why?

Solution is:

  • Reuse the Metadata Exposed API caching mechanism, but instead of caching the actual IIIF Manifest (which will still require parsing via JMESPATH a 2.9 Mbytes (*for the 767 pages manifest expressed in this message) for every query YET again, we cache the already cleaned/processed JMESPATH results.

Caches will clear, of course as always, if the NODE or the Exposed endpoint or the IIIF Manifest itself changes.

@alliomeria, life is hard...

This connects with #456 of course.

I almost feel tempted to allow people for these beast of ADOs to donwload the Manifest, upload back as file. Serve statically until the end of days (which is a manual version of #456 )

@DiegoPino DiegoPino added enhancement New feature or request Twig Twig template processing metadata Meta(l) data IIIF Specs/Manifests/Implementations Custom Entities Search and Discovery Mess around and find out Drupal 10 Upgrade economy labels Aug 1, 2024
@DiegoPino DiegoPino added this to the 1.5.0 milestone Aug 1, 2024
@DiegoPino DiegoPino self-assigned this Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Custom Entities Drupal 10 Upgrade economy enhancement New feature or request IIIF Specs/Manifests/Implementations metadata Meta(l) data Search and Discovery Mess around and find out Twig Twig template processing
Projects
None yet
Development

No branches or pull requests

1 participant