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

Improve performance of the timeseries queries #1264

Merged
merged 3 commits into from
Apr 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion classes/DataWarehouse/Access/MetricExplorer.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function get_data($user)

$dataset_classname
= $timeseries
? '\DataWarehouse\Data\SimpleTimeseriesDataset'
? '\DataWarehouse\Data\TimeseriesDataset'
: '\DataWarehouse\Data\SimpleDataset';

$highchart_classname
Expand Down
15 changes: 15 additions & 0 deletions classes/DataWarehouse/Data/SimpleTimeseriesData.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,21 @@ public function __construct($name)
parent::__construct($name);
}

/**
* Add a data point to the timeseries data.
*
* @param mixed $time The posix timestamp for the record.
* @param mixed $value The value of the record.
* @param mixed $error_value The error value for the record.
*
* @return void
*/
public function addDatum($time, $value, $error_value) {
$this->_start_ts[] = $time;
$this->_values[] = $value;
$this->_errors[] = $error_value;
}

/**
* JMS June 2015
*/
Expand Down
153 changes: 0 additions & 153 deletions classes/DataWarehouse/Data/SimpleTimeseriesDataIterator.php

This file was deleted.

Loading