Ticket #204 (closed enhancement: fixed)
Introduction /collection/{id}/count call
| Reported by: | Michiel.Schok | Owned by: | robert |
|---|---|---|---|
| Priority: | major | Milestone: | MediaMosa 2.2 |
| Component: | Core | Version: | |
| Keywords: | Cc: | ||
| MoSCoW: | Must Have | Estimated time after impact analysis: | |
| Related to project: | none | Tested: | yes |
| Accepted: | yes | Estimated Hours: | 6 |
Description
Which returns the number of assets in the collection, without asset details.
Parameters supported:
hide_empty_assets, default false. When hide_empty_assets is true, only the non-empty assets are counted.
Background:
At the moment, the only way to gather information about the total number of assets in a collection is an
/collection/{id}/asset?limit=10 query, where the asset-detail results are ignored, and only the total count in the header is used. That query operation is resource intensive, while assets must be sorted, and the <granted> field must be calculated.
The /count call would be a very cheap alternative.
