Skip to content

Large wiki pages #1046

@pnorman

Description

@pnorman

A few pages on the wiki are too large and complex for Mediawiki to properly handle them. This has in the past lead to downtime when they have stopped working and brought the entire wiki down with them.

The problems seem to be coming from pages with hundreds of images from Wikimedia Commons and high complexity pages with thousands of transcludes. The most prominent example is the Map features page which requires about 30 seconds to generate, but there are other examples which are worse for complexity.

In the case of map features, clicking on the edit link takes you to https://wiki.openstreetmap.org/w/index.php?title=Map_features&veaction=edit which, if it does not crash the browser, will time out.

On the complexity side, the number of images causes Wikimedia commons to consider the requests a DOS attack and block the user. This happens when the user views the page, but also when various scripts are run.

We've tried papering over the issues as they've come up but we need to address the root cause: Mediawiki does not work with pages this complex or with this many images.

By viewing source you can see a report at the bottom of the page in a HTML comment - search for NewPP limit report. For map features, it shows that has 5000+ transclusions and took 28.7s to generate when I loaded the page. For comparison, the front page has about 50 transclusions and takes 0.69 seconds to generate.

Wikipedia's page on their template limits is a reasonable overview of some of the problems.

Another class of page with problems is lists of thousands of relations.

I think there's a few steps we need to do.

  1. We should start by telling wiki admins that some pages have become excessively complex and must be reduced. We can let them figure out what to do with the pages. Some of them like lists of thousands of relations may not belong on the wiki, while others should have been split some time ago for editorial reasons.
  2. Tweak the various mediawiki parameters in an incremental manner, bringing them down to a level that prevents pages so complex they pose a risk to the entire wiki

Metadata

Metadata

Assignees

No one assigned

    Labels

    service:wikiThe project wiki on wiki.openstreetmap.org

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions