Peter17 wrote: > Hi everyone! > > My Google Summer of Code is finished, but the code I have written for > the interwiki transclusion is not yet ready to be merged in trunk. > Some optimizations have to be made and some little issues are still to > be discussed. > > The main remaining question is: should I use a separate DB or a shared > table to store the GlobalTemplateLinks table? [1] > > Following the advice of my mentor, Catrope, my code is currently using > a separate DB (which name is stored in $wgGlobalDatabase) since it is > the mechanism used by CentralAuth and it is very simple for users to > set it up. > > Platonides thinks that I should be using a shared table, since my code > is not an extension. However, a disadvantage of shared table is that > currently, adding a shared table in $wgSharedTables will force the > user to share the users table, which is not always wanted. > > I have further developments to accomplish on my code concerning > database tables (such as creating a GlobalNamespaces table to store > the distant namespaces names). I would like to solve this issue first, > so that I don't have to rewrite everything later... > > Can you please provide your opinion about this? > > Thanks in advance > > Best regards > > [1] > http://www.mediawiki.org/wiki/User:Peter17/Reasonably_efficient_interwiki_transclusion > > -- > Peter Potrowl > http://www.mediawiki.org/wiki/User:Peter17 > $wgSharedTables is pre-populated specifically with user related stuff for backwards compatibility since originally enabling $wgSharedDB shared only the user table, it had no option to share anything else at all till I added it. The defaults for $wgSharedTables should only ever contain stuff to share users, but sharing users is not necessary. So if you've got something that uses a shared table (which would need configuration anyways) and people want to turn it on I'd say it would be reasonable to make setting $wgSharedDB and resetting $wgSharedTables to an empty array without the user related tables to be reasonable.
-- ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l