Last modified: 2013-11-30 05:41:21 UTC
The (rather useful) table "namespaces" is exposed in enwiki_p, but for no other wiki I checked (dewiki_p, svwiki_p, commonswiki_p). Will you expose the table for the other wikis as well soon, or do I have to change my code to use the API instead? (DB would be more elegant and faster, but mainly I just would like to know either way ASAP)
That table doesn't seem up to date to me (compare it to the wgNamespaceIds JavaScript variable when on the wiki), and is not provided by MediaWiki core...
Wikimedia wikis don't use the namespace table for storing namespaces. (We use a cdb database instead) - see $wgInterwikiCache. I imagine the namespace tables in the db don't look anything like the actual namespaces in use.
Thanks, I'll use the API instead.
If we are not going to add the namespace tables to all DBs could we please remove it from the enwiki db as it appears to be causing some confusion :)
There are a number of old, generally obsolete tables in some of the older wikis (enwiki being the most cluttered, for historical reason). While the mediawiki code base no longer uses those tables (and, in some cases, never used them in production), we replicate under the principle of "maximal transparency" and they are made available wherever they do not include private information. While we could remove the views to old or unused tables, I see no reason to remove access to that historical data.
(In reply to comment #4) > If we are not going to add the namespace tables to all DBs could we please > remove it from the enwiki db as it appears to be causing some confusion :) Open a new bug for that please.