Job data makes Statistics tab badge update slow

Steps to reproduce

The rest endpoint service/statistic.json is called every 30secs by the Admin UI to update the service status badge on the statistics tab.

This call though can take over a sec to be resolved on a large deployment as it also gathers information about the jobs running on each service. This information is unnecessary to just update an icon to show how many services need sanitizing.

An administrator who has the admin UI open all day can and hour of database time just refreshing this icon and could be higher as it calls the endpoint each time the page is reload (eg clicking a tab).

The rest endpoint needs to be changed so that the service stats can be returned without the job information.

Status

Assignee

Greg Logan

Reporter

James Perrin

Severity

Performance

Tags (folksonomy)

Components

Fix versions

Affects versions

1.4.0

Priority

Major