r19783 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r19782‎ | r19783 | r19784 >
Date:09:13, 5 February 2007
Author:midom
Status:old
Tags:
Comment:
In case tables are created as MyISAM, use row hints for MySQL <5.0 to avoid 4GB limit
Modified paths:
  • /trunk/phase3/maintenance/tables.sql (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/tables.sql
@@ -277,9 +277,9 @@
278278 INDEX user_timestamp (rev_user,rev_timestamp),
279279 INDEX usertext_timestamp (rev_user_text,rev_timestamp)
280280
281 -) TYPE=InnoDB;
 281+) TYPE=InnoDB MAX_ROWS=10000000 AVG_ROW_LENGTH=1024;
 282+-- In case tables are created as MyISAM, use row hints for MySQL <5.0 to avoid 4GB limit
282283
283 -
284284 --
285285 -- Holds text of individual page revisions.
286286 --
@@ -313,7 +313,8 @@
314314
315315 PRIMARY KEY old_id (old_id)
316316
317 -) TYPE=InnoDB;
 317+) TYPE=InnoDB MAX_ROWS=10000000 AVG_ROW_LENGTH=10240;
 318+-- In case tables are created as MyISAM, use row hints for MySQL <5.0 to avoid 4GB limit
318319
319320 --
320321 -- Holding area for deleted articles, which may be viewed