Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved management for ZERO in platform-interval-secs #1011

Open
IanMayo opened this issue Sep 16, 2021 · 0 comments
Open

Improved management for ZERO in platform-interval-secs #1011

IanMayo opened this issue Sep 16, 2021 · 0 comments
Assignees
Labels
bug Something isn't working Database Database-specific issue

Comments

@IanMayo
Copy link
Member

IanMayo commented Sep 16, 2021

In PlatformTypes we have a column for default_data_interval_secs.

When we collate data for the timeline, we treat a gap of x times the interval as a break in coverage.

For legacy platform-types the field had a value of zero for almost all platform-types. This meant that the SQL interpreted every data value as a new mini-segment - so the dashboard_stats dataset was 700Kb and it took a long time to render/update. I set all the values to 60 seconds, and the dataset dropped to 23Kb, the update only took a second or so, and the serials got shaded in properly.

This issue probably won't arise again on client data. But it may save the day if we prevent it happening in the future. We can do this with some mangling of the data. In the SQL for dashboard_metadata we could append INTERVAL MISSING to any platform of a platform-type with zero default_data_interval_secs. We can modify dashboard_statistics to not process platforms of a platform-type with zero for the above field.

@IanMayo IanMayo added the bug Something isn't working label Sep 16, 2021
@IanMayo IanMayo self-assigned this Sep 16, 2021
@IanMayo IanMayo added the Database Database-specific issue label Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Database Database-specific issue
Projects
None yet
Development

No branches or pull requests

1 participant