[pmwiki-users] Large ammount of articles... about 50k

Patrick R. Michaud pmichaud at pobox.com
Mon May 23 14:35:24 CDT 2011

On Mon, May 23, 2011 at 06:20:03PM +0000, Jaime Sempere wrote:
> I have been using PMwiki for a wiki and really like its 
> simplicity. I was thinking to use for a large amount of 
> articles (as indicated on the subject of this mail, 
> about 50.000 articles, and later I hope to increase 
> the articles until 250.000 or even more). 

I've had at least one site that had over 250,000 pages
and supported hundreds of authors, with several dozen
editing at the same time.  As long as you aren't wanting
PmWiki to do lots of searches or pagelists of those 
250K pages, PmWiki can handle it.

(If you do need searching capabilities at that scale,
I recommend an external search engine such as htDig
or even Google.  At the site I just mentioned, we let
Google index the site and provide all of our search

The trick is indeed to make sure the pages don't
end up in the same filesystem directory.  If you have groups,
it's natural to subdivide by group name; if not, then
you can use almost any other criteria you wish that can
be reliably determined from the pagename.  Here's an
example customization that subdivides based on the 
first letter of each article's name:

    $FmtPV['$Name1'] = 'substr($name, 0, 1)';
    $WikiDir = new PageStore('wiki.d/{$Name1}/{$FullName}');

The first line creates a $Name1 page variable that returns
the first letter of a page's name.  The second line sets
the default page storage ($WikiDir) to be wiki.d with
the articles subdivided into subdirectories based on the
first letter of each name.  Thus an article of Main.HomePage
would end up in wiki.d/H/Main.HomePage .

If subdividing by first letter isn't enough, it's easy
to switch to the first two, first three, etc., letters.


More information about the pmwiki-users mailing list