summaryrefslogtreecommitdiff
path: root/maintenance/archives/patch-querycache.sql
blob: 7df9129e93a069e6dbd763ba9a0720013b55ac6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-- Used for caching expensive grouped queries

CREATE TABLE /*$wgDBprefix*/querycache (
  -- A key name, generally the base name of of the special page.
  qc_type char(32) NOT NULL,
  
  -- Some sort of stored value. Sizes, counts...
  qc_value int(5) unsigned NOT NULL default '0',
  
  -- Target namespace+title
  qc_namespace int NOT NULL default '0',
  qc_title char(255) binary NOT NULL default '',
  
  KEY (qc_type,qc_value)

) TYPE=InnoDB;