Last modified: 2014-02-12 23:35:46 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 14164 - Interwiki cache should be shared when Interwiki table is shared
Interwiki cache should be shared when Interwiki table is shared
Status: NEW
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.13.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-05-17 16:49 UTC by Daniel Friesen
Modified: 2014-02-12 23:35 UTC (History)
0 users

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


Attachments

Description Daniel Friesen 2008-05-17 16:49:00 UTC
Just a little poke for myself. There's a fair bit of redundancy with the fact that interwiki links are stored in the cache for each wiki that uses them, but that's all basically duplication when you are sharing the interwiki table.

Just a reminder to hunt through the code. I intend to make it so that when you share the interwiki table, the cache will use the key for that shared table instead of the local one. The data is all equivilant so the idea here is that doing that will reduce data duplication (Can get fairly large on wiki farms), and also improve the speed of the interwiki cache purging maintenance script since it will only need to run over a single database instead of once for each wiki.
Comment 1 Daniel Friesen 2008-05-17 16:56:24 UTC
This should be doable in Title::getInterwikiCached();

wfForeignMemcKey and wfForeignWikiID will act as helpers for using foreign keys instead of locals.

Potentially a simple helper set wfMemcKeyForTable and wfWikiIDForTable could also be created, first input would be a table name and they would output the data for the shared if that table is shared, or local otherwise. That would simplify something which may likely end up common inside of MediaWiki when dealing with caches for strait table data.
Comment 2 Mark A. Hershberger 2011-07-28 13:36:44 UTC
unassign Daniel Friesen after talking to him

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


Navigation
Links