Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2015-02-26 05:07:19 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-03-05 05:31:18 +0300
commita1cb3695319b321f92bb0a4fd31892a9bc1bdf38 (patch)
tree95c813ee950d38fd74c5c125645cca144ff3ea4f /core
parentb8f07213450f570174becd807a6932ac69050fe4 (diff)
this makes flatten pageUrls much faster
Diffstat (limited to 'core')
-rw-r--r--core/API/DataTableManipulator.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/API/DataTableManipulator.php b/core/API/DataTableManipulator.php
index 862f2db087..23036c8e82 100644
--- a/core/API/DataTableManipulator.php
+++ b/core/API/DataTableManipulator.php
@@ -114,6 +114,14 @@ abstract class DataTableManipulator
return null;
}
+ if ($row->getMetadata('idsubdatatable_in_db')) {
+ $manager = DataTable\Manager::getInstance();
+ $table = $manager->getTable($idSubTable);
+ if ($table) {
+ return $table;
+ }
+ }
+
$request['idSubtable'] = $idSubTable;
if ($dataTable) {
$period = $dataTable->getMetadata(DataTableFactory::TABLE_METADATA_PERIOD_INDEX);