r90639 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90638‎ | r90639 | r90640 >
Date:00:44, 23 June 2011
Author:rfaulk
Status:deferred
Tags:
Comment:
Updated confidence queries to use latest banner and landing page tables from the Fundraiser db on grosley
Modified paths:
  • /trunk/fundraiser-statistics/fundraiser-scripts/sql/report_LP_confidence.sql (modified) (history)
  • /trunk/fundraiser-statistics/fundraiser-scripts/sql/report_banner_confidence.sql (modified) (history)

Diff [purge]

Index: trunk/fundraiser-statistics/fundraiser-scripts/sql/report_LP_confidence.sql
@@ -20,13 +20,13 @@
2121 landing_page,
2222 utm_campaign,
2323 count(*) as views
24 -from landing_page
 24+from landing_page_requests
2525 where request_time >= '%s' and request_time < '%s'
2626 and utm_campaign REGEXP '%s'
2727 and landing_page REGEXP '%s'
2828 group by 1,2) as lp
2929
30 -join
 30+left join
3131
3232 (select
3333 SUBSTRING_index(substring_index(utm_source, '.', 2),'.',-1) as landing_page,
Index: trunk/fundraiser-statistics/fundraiser-scripts/sql/report_banner_confidence.sql
@@ -25,7 +25,7 @@
2626 (select
2727 utm_source,
2828 sum(counts) as impressions
29 -from impression
 29+from banner_impressions
3030 where on_minute > '%s' and on_minute < '%s'
3131 and utm_source REGEXP '%s'
3232 group by 1) as imp
@@ -35,7 +35,7 @@
3636 (select
3737 utm_source,
3838 count(*) as views
39 -from landing_page
 39+from landing_page_requests
4040 where request_time >= '%s' and request_time < '%s'
4141 and utm_campaign REGEXP '%s'
4242 group by 1) as lp
@@ -47,14 +47,14 @@
4848 (select
4949 utm_source,
5050 count(*) as total_views
51 -from landing_page
 51+from landing_page_requests
5252 where request_time >= '%s' and request_time < '%s'
5353 and utm_source REGEXP '%s'
5454 group by 1) as lp_tot
5555
5656 on imp.utm_source = lp_tot.utm_source
5757
58 -join
 58+left join
5959
6060 (select
6161 SUBSTRING_index(substring_index(utm_source, '.', 2),'.',1) as banner,

Status & tagging log