git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [spf:guess] Re: Git import of the recent full enwiki dump

From
SBSebastian Bober <sbober@servercare.de>
Date
Apr 17, 2010, 01:58 UTC
Message-ID
<20100417015857.GD32053@post.servercare.de>
In-Reply-To
<1271468696.3302.35.camel@denix>
On Sat, Apr 17, 2010 at 01:44:56PM +1200, Sam Vilain wrote:
Show 7 quoted lines
> On Sat, 2010-04-17 at 03:01 +0200, Sebastian Bober wrote:
> > I'm not dissing fast-import, it's fantastic. We tried with 2-10 level
> > deep trees (the best depth being 3), but after some million commits it
> > just got unbearably slow, with the ETA constantly rising.
> 
> How often are you checkpointing?  Like any data import IME, you can't
> leave transactions going indefinitely and expect good performance!

We have tried checkpointing (even stopping/starting fast-import) every 10,000 - 100,000 commits. That does mitigate some speed and memory issues of fast-import. But in the end fast-import lost time at every restart / checkpoint.

Show 29 quoted lines
> Would it be at all possible to consider using a submodule for each page?
> With a super-project commit which is updated for every day of updates or
> so.
> 
> This will create a natural partitioning of the data set in a way which
> is likely to be more useful and efficient to work with.  Hand-held
> devices can be shipped with a "shallow" clone of the main repository,
> with shallow clones of the sub-repositories too (in such a setup, the
> device would not really use a checkout of course to save space).  Then,
> history for individual pages could be extended as required.  The device
> could "update" the master history, so it would know in summary form
> which pages have changed.  It would then go on to fetch updates for
> individual pages that the user is watching, or potentially even get them
> all.  There's an interesting next idea here: device-to-device update
> bundles.  And another one: distributed update; if, instead of writing to
> a "master" version - the action of editing a wiki page becomes to create
> a fork and the editorial process promotes these forks to be the master
> version in the superproject.  Users which have pulled the full
> repository for a page will be able to see other peoples' forks, to get
> "latest" versions or for editing purposes.  This adds not only a
> distributed update action, but the ability to have decent peer
> review/editorial process without it being arduous.
> 
> Without good data set partitioning I don't think I see the above
> workflow being as possible.  I was approaching the problem by first
> trying to back a SQL RDBMS to git, eg MySQL or SQLite (postgres would be
> nice, but probably much harder) - so I first set out by designing a
> table store.  But the representation of the data is not important, just
> the distributed version of it.

Yep, we had many ideas how to partition the data. All that was not tried up to now, because we had the hope to get it done the "straight" way. But that may not be possible.

> Actually this raises the question - what is it that you are trying to
> achieve with this wikipedia import?

Ultimately, having a distributed Wikipedia. Having the possibility to fork or branch Wikipedia, to have an inclusionist and exclusionist Wikipedia all in one.

bye,
  Sebastian
Previous: Sam VilainNext: Sam Vilain
Message 7 of 12 in “Git import of the recent full enwiki dump”
  1. Richard HartmannApr 16, 2010
  2. Sverre RabbelierApr 17, 2010
  3. Sebastian BoberApr 17, 2010
  4. Shawn O. PearceApr 17, 2010
  5. Sebastian BoberApr 17, 2010
  6. Sam VilainApr 17, 2010
  7. Sebastian BoberApr 17, 2010
  8. Sam VilainApr 17, 2010
  9. Sebastian BoberApr 17, 2010
  10. Richard HartmannApr 17, 2010
  11. Shawn O. PearceApr 17, 2010
  12. Sebastian BoberApr 17, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.