Skip to content

Commit

Permalink
refs #57 do not flatten for now, brings massive performance improveme…
Browse files Browse the repository at this point in the history
…nt 10min > 1 sec as Referrers_getKeywords takes forever and also leads in memory exhausted when report is flattened
  • Loading branch information
tsteur committed Mar 3, 2014
1 parent 6e022a7 commit 62939c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/Insights/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ public function getInsightsOverview($idSite, $period, $date)
'Actions_getPageTitles',
'Referrers_getKeywords',
'Referrers_getCampaigns',
'Referrers_getAll'
'Referrers_getAll',
'Referrers_getSearchEngines'
);
// post event to add other reports?
Expand Down Expand Up @@ -160,7 +161,7 @@ private function requestReport($idSite, $period, $date, $report, $metric, $segme
'idSite' => $idSite,
'period' => $period,
'date' => $date,
'flat' => 1,
'flat' => 0,
'filter_limit' => 1000,
'showColumns' => $metric
);
Expand Down

0 comments on commit 62939c1

Please sign in to comment.