Last modified: 2014-08-05 01:05:19 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T71127, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69127 - Database upgrade MariaDB 10: Discrepancies with logging table on different wikis
Database upgrade MariaDB 10: Discrepancies with logging table on different ...
Status: UNCONFIRMED
Product: Wikimedia Labs
Classification: Unclassified
Infrastructure (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Sean Pringle
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-04 21:39 UTC by metatron
Modified: 2014-08-05 01:05 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description metatron 2014-08-04 21:39:11 UTC
Queries on logging-table perform different on different wikis. 
Atm there are different key definitions on eg. enwiki and dewiki
- enwiki has a key `log_user_text_time`(ok to have), dewiki doesn't
- dewiki has a key `log_user_type_time`(important to have), enwiki doesn't
- same for `log_title_time` / `log_page_id_time`

enwiki | CREATE TABLE `logging`
...
PRIMARY KEY (`log_id`), 
  KEY `type_time` (`log_type`,`log_timestamp`), 
  KEY `user_time` (`log_user`,`log_timestamp`), 
  KEY `page_time` (`log_namespace`,`log_title`,`log_timestamp`),
  KEY `times` (`log_timestamp`), 
  KEY `log_page_id_time` (`log_page`,`log_timestamp`), 
  KEY `log_user_text_time` (`log_user_text`(16),`log_timestamp`), 
  KEY `log_title_time` (`log_title`(16),`log_timestamp`) 
) ENGINE=TokuDB AUTO_INCREMENT=58015836 DEFAULT CHARSET=binary `compression`='tokudb_zlib'


dewiki | CREATE TABLE `logging`
...
PRIMARY KEY (`log_id`),
  KEY `type_time` (`log_type`,`log_timestamp`),
  KEY `user_time` (`log_user`,`log_timestamp`),
  KEY `page_time` (`log_namespace`,`log_title`,`log_timestamp`),
  KEY `times` (`log_timestamp`),
  KEY `log_user_type_time` (`log_user`,`log_type`,`log_timestamp`),
  KEY `log_page_id_time` (`log_page`,`log_timestamp`)
) ENGINE=TokuDB AUTO_INCREMENT=62684641 DEFAULT CHARSET=binary `compression`='tokudb_zlib'

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links