Hi,
for an omeka installation we are developing a custom front end. For that I planned to get all the data using the API. For the entry page I’m looking to display a bigger number of items with their thumbnails. Unfortunately from what I can see, that means making individual API requests to the /files end point for each item to get the file URLs, which takes a very long time, around 1 minute for 24 items. This makes displaying an overview of many items with their thumbnails prohibitively slow. Is there a way to get the files for more than one item with one request, or to include file URLs them in the initial API response at the /items end point?
Many thanks!
@t_k Did you found solution?
If still see slow responses the bottleneck is likely:
- image thumbnails not pre-generated
- server disk I/O
- no caching layer
Include thumbnail URLs directly in item JSON without embed for your frontend.
Yes and no. I did not find a way to do it via the API at anywhere near a practical speed. So I migrated the archive that was hosted on omeka.net to an independent server and pivoted from running it headless to implementing a custom theme. I had to make some compromises on the design side but it turned out just fine in the end. The site is live now on https://archive.makeuparchive.org/ if you’re interested.
@t_k Yes I have an alternate solution to achieve your requirement. Fetching these records from the database instead of making API request.