r90629 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90628‎ | r90629 | r90630 >
Date:23:12, 22 June 2011
Author:rfaulk
Status:deferred
Tags:
Comment:
Used by CampaignIntervalReportingLoader to return views and donations for camapaigns broken up by time
Modified paths:
  • /trunk/fundraiser-statistics/fundraiser-scripts/sql/report_campaign_metrics_minutely.sql (modified) (history)
  • /trunk/fundraiser-statistics/fundraiser-scripts/sql/report_campaign_metrics_minutely_total.sql (modified) (history)

Diff [purge]

Index: trunk/fundraiser-statistics/fundraiser-scripts/sql/report_campaign_metrics_minutely.sql
@@ -9,17 +9,19 @@
1010
1111 from
1212
 13+
 14+
1315 (select
1416 DATE_FORMAT(request_time,'%sY%sm%sd%sH') as dt_hr,
1517 FLOOR(MINUTE(request_time) / %s) * %s as dt_min,
1618 utm_source as banner,
1719 landing_page,
1820 count(*) as views
19 -from landing_page
 21+from landing_page_requests
2022 where request_time >= '%s' and request_time < '%s' and utm_campaign REGEXP '%s'
2123 group by 1,2,3,4) as lp
2224
23 -join
 25+left join
2426
2527 (select
2628
Index: trunk/fundraiser-statistics/fundraiser-scripts/sql/report_campaign_metrics_minutely_total.sql
@@ -13,11 +13,11 @@
1414 DATE_FORMAT(request_time,'%sY%sm%sd%sH') as dt_hr,
1515 FLOOR(MINUTE(request_time) / %s) * %s as dt_min,
1616 count(*) as views
17 -from landing_page
 17+from landing_page_requests
1818 where request_time >= '%s' and request_time < '%s' and utm_campaign REGEXP '%s'
1919 group by 1,2) as lp_tot
2020
21 -join
 21+left join
2222
2323 (select
2424

Status & tagging log