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 9c43516
Show file tree
Hide file tree
Showing 7 changed files with 473 additions and 1,120 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 9c43516

Please sign in to comment.