[Koha-bugs] [Bug 17371] REST API: add CRUD for biblios

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 15 11:12:21 CET 2016


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

--- Comment #5 from Benjamin Rokseth <benjamin.rokseth at kul.oslo.kommune.no> ---
(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.


More information about the Koha-bugs mailing list