[Mediawiki-l] Mass Import

Wolfe, Jeff Jeff_Wolfe at intuit.com
Wed Apr 13 21:58:48 UTC 2005


I see.  I think I have found a reasonable way to proceed and was hoping
someone would verify it for me (sanity/sniff test).  It appears I can simply
insert all my new records into "cur" and then run
./maintenance/rebuildall.php.  The one thing I found was a creepy statement
about updating links with an old call "LinksUpdate::doDumbUpdate."  Another
call exists "LinksUpdate::doUpdate" that claims to be efficient, but I can't
tell why it hasn't been used in this case.

So, does it seem reasonable to directly insert into cur and follow with
rebuildall.php?  And if so, should I swap out the doUpdate for doDumbUpdate?

Any comments would be greatly appreciated.

Ultimately, I do think that something done more directly through the app
logic is probably a much better approach - especially since it would retain
the revision history.

Thanks!

Jeff

-----Original Message-----
From: mediawiki-l-bounces at Wikimedia.org
[mailto:mediawiki-l-bounces at Wikimedia.org] On Behalf Of John Blumel
Sent: Wednesday, April 13, 2005 4:49 PM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Mass Import

On Apr 13, 2005, at 5:28pm, Wolfe, Jeff wrote:

> I was thinking about just pushing into cur, category, and searchindex, 
> but I think you have an excellent point.  I really like being able to 
> attribute the author, source, etc.  Have you considered trying to use 
> some of the php scripts from the command-line as an alternative?

I didn't pursue that route because I don't have (or really want) direct
access to the server or the MySQL database. Also, since I haven't worked in
PHP before (although it looks very similar to Perl) it seemed easier to just
do all the work in Perl (which works very for parsing the source text).


John Blumel

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l




More information about the MediaWiki-l mailing list