Timwi wrote:
Jens Frank wrote:
On Tue, Jun 15, 2004 at 09:19:20AM +0200,
Gerard.Meijssen wrote:
LS, I have been trying for two days to change one
record in
nl:wiktionary. the article is [[Sjabloon:-noun-]]
When saving a template, all pages using the template are "touched" so
that they
will be updated the next time they are rendered. Having zillions of
pages using
that template, this takes a long time. Probably too long.
Did whoever came up with that think about the performance implications? o.O
Of course I did. In MediaWiki 1.2 I deliberately avoided this kind of
cache purging, for performance reasons. But this behaviour was very
unpopular, and some automated method was often requested. So in 1.3 I
invalidated the cache of all pages linking to a given template page,
when the template page is updated. The purge operation required is no
worse than that for page creation or deletion.
There are a number of workarounds. Firstly, the cache invalidation only
occurs when pages in the Template (Sjabloon) namespace are updated. So
you could put the -noun- template in [[WikiWoordenboek:-noun]], and
include it with {{WikiWoordenboek:-noun}}.
The second alternative is to stop using templates for each and every
little link. Are they really necessary?
The third alternative is to get it right the first time, to avoid
changing it at all costs, and if you really need to change it, only do
so in off-peak times.
In any case, there isn't a zillion pages using that template, only 497.
Perhaps we need to do some database optimisation so that relatively
small operations like this become possible.
-- Tim Starling