Topic on Project:Support desk

Updating without Updating *_from_namespace fields in links tables.

5
Christian75 (talkcontribs)

I just updated to 1.24wmf21 (2691b4d) (same version as here) from 1.24wmf14 and it started to "Updating *_from_namespace fields in links tables." which takes looong time. If a break it, and restart update.php it just restart the updating of the fields.

Is it possible to break the updating (and not get the updating of the fields again) and just get the new fields when the page is changed or hit the refreshlinks from the job queue?

Christian75 (talkcontribs)

I just removed everything from the function doDBUpdates() but return true; in the file populateBacklinkNamespace.php in maintenance, which btw. states "* Optional upgrade script to populate *_from_namespace fields" - but it didnt look like it was optional.

Florianschmidtwelzow (talkcontribs)

You shouldn't change any core files, if you don't know, what you do :) More information about that.

Depending on the size of your wiki, the update process can take a long time. For this, you can use the maintenance script, but, if you want, you can wait until the pages have self updated (on every edit), which will create the necessary values to the table. So the maintenance script is optionally, not a single function ;)

So your options:

-> use the maintenance script, to populate the fields
-> wait until the fields will create themself

Note: If you aren't very familar in running a wiki or won't have much of overhead (short update cycles, possible untested scenarios wih third party extensions and so on), you should use the official thid party releases of MediaWiki instead of he wmf-builds, which are used on wmf wikis :)

Christian75 (talkcontribs)

thanks, but its not possible to " use the maintenance script, to populate the fields" [later] because the update.php will restart the population of the fiels if I just break the update.php and restart it again, and there is no option to skip the population. But populateBacklinkNamespace.php has an option to start indexing from a specific number which is nice. The private wiki had 600.000 pags so its a long process. It took really long time to add the extra fields...

Florianschmidtwelzow (talkcontribs)

Oh, yeah, sorry, my fault. This maintenance script should run after the update.php script (so it will do automatically). Then you should take the time and let the script running, really ;)

Reply to "Updating without Updating *_from_namespace fields in links tables."