r92556 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92555‎ | r92556 | r92557 >
Date:19:29, 19 July 2011
Author:reedy
Status:deferred
Tags:
Comment:
Add offline table as it seems not to have been commited
Modified paths:
  • /trunk/wikistats/analytics/create_and_use_db_analytics.txt (modified) (history)

Diff [purge]

Index: trunk/wikistats/analytics/create_and_use_db_analytics.txt
@@ -18,7 +18,7 @@
1919 -- only store basic data in database and calculate all aggregates on the fly or do some aggragation before hand ? (e.g. count for mobile / non-mobile / ==> total of both ? <==)
2020 -- for binaries, store one extension type per row? (future proof, more work to query), or a selected few as columns? (one row only needed per month)
2121
 22+-- Create database and tables from scratch
2223 DROP DATABASE IF EXISTS `analytics` ;
2324
2425 CREATE DATABASE `analytics` ;
@@ -97,6 +97,12 @@
9898 PRIMARY KEY (date,project_code,language_code,extension)
9999 ) ;
100100
 101+CREATE TABLE `offline` (
 102+ `date` date NOT NULL,
 103+ `readers` bigint(12) NOT NULL DEFAULT '0',
 104+ PRIMARY KEY (date,readers)
 105+) ;
 106+
101107 -- SHOW TABLES ;
102108 -- DESCRIBE comscore ;
103109 -- DESCRIBE comscore_regions ;

Status & tagging log