Skip to content

Commit

Permalink
Improve performance of the timeseries queries.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpwhite4 committed Mar 17, 2020
1 parent ba08869 commit 8a11da8
Show file tree
Hide file tree
Showing 8 changed files with 500 additions and 1,122 deletions.
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
5 changes: 5 additions & 0 deletions classes/DataWarehouse/Data/SimpleTimeseriesData.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ public function __construct($name)
parent::__construct($name);
}

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

0 comments on commit 8a11da8

Please sign in to comment.