Hi,
Is there a way to refresh only certain "links", like categories.
When doing "systematical" work with categories one would sometimes like to refresh the entire database after changes in templates etc. But, the categories won't "release" old category markup unless touching the articles. Now, updating ALL links flr several hundred thousand articles, or more, isn't always desired.
So here we go, Rob or Brian, a script like updateCategoryLinks.php [startindex] would be something... (if not already there, somehow).
I'd be the first one to test it for you! =)
TIA,
// Rolf Lampa
On 07/05/07, Rolf Lampa rolf.lampa@rilnet.com wrote:
When doing "systematical" work with categories one would sometimes like to refresh the entire database after changes in templates etc. But, the categories won't "release" old category markup unless touching the articles. Now, updating ALL links flr several hundred thousand articles, or more, isn't always desired.
Links due to templates will, in all recent versions of MediaWiki, be updated as the job queue is executed. To run through all jobs, use the maintenance/runJobs.php script.
It's not possible to write a script which only updates the category link tables and expect it to run any faster, because a brute-force link table update is needed; we don't know what pages link to categories, so we have to parse and check them all.
Rob Church
Rob Church wrote:
On 07/05/07, Rolf Lampa rolf.lampa@rilnet.com wrote:
... categories won't "release" old category markup unless touching the articles. ...
Links due to templates will, in all recent versions of MediaWiki, be updated as the job queue is executed. To run through all jobs, use the maintenance/runJobs.php script.
Hm. What I actually did was that I replaced a bunch of templates with SQL ( UPDATE ... REPLACE ( 'a', 'b' ) ). Well, I should have said that.
... a brute-force link table update is needed; we don't know what pages link to categories, so we have to parse and check them all.
Ahh, yes, that makes sense (in my case the categories were located in the templates which I removed).
Do you btw parse only in memory when doing the refreshLinks? Nothing to win by dropping half done stuff (in the case when there's need only for removing links, or categories? a "half update", or a "loss update version", skipping any additions (if any). Well, I guess you can see where I'm going. The reason is of course that sometimes you make a certain kind of change, globally, and then "dedicated" & optimized updates can (?) make a huge difference. Perhaps. =)
Regards,
// Rolf Lampa
mediawiki-l@lists.wikimedia.org