https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17371

--- Comment #5 from Benjamin Rokseth <[email protected]> ---
(In reply to Jiri Kozlovsky from comment #4)
> What if you visit items endpoint in a record with really huge amount of
> items? I think it would actually timeout, depending on the server or proxy
> configuration serving this endpoint. Wouldn't it be better to return only
> list of itemnumbers so that the user can fetch let's say only first 10 items
> and after he want to see next, he fetches another 10 items?

Depends on what you mean by huge amount? thousands? We have no issue on
hundreds, although it takes some seconds. The API strives to be agnostic of the
DB and merely uses Koha Objects  ($biblio->items). Getting only the IDs would
actually be more code and logic in the API than we want.

However, if this is an issue, I would rather suggest adding a method to
Koha::Biblios to get the IDs of the attached items only, and then the API could
reflect that with another route.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to