Improve performance of /api/events?withpublications=true

Description

The External API request /api/events support various query parameters to make the request include more data directly in the response to avoid further API calls needed to retrieve that data.

The query parameter withpublications will include full details about the publications (v.s. just the list of publication channel names) to avoid the need to call /api/events/{id}/publications/{id} for all events and publications.

Currently, the setting withpublications slows the request /api/events down by approx. factor 2 (depends on test scenario).

An analysis of the code revealed that while the request /api/events already retrieves all data of all events, setting withpublications=true will - for each event - issue another request to the search index.

Compatibility: Fully compatible with External API 1.0.0

Status

Assignee

Sven Stauber

Reporter

Sven Stauber

Tags (folksonomy)

None

Components

Fix versions

Affects versions

Priority

Major
Configure