Issue Task Closed

#101704RedirectService: Performance/memory-overhead for large number of redirects

Stefan Neufeind 08/17/23, 09:48 updated 11/02/26, 20:35

Description

In The RedirectService, matchRedirect() there is a call to load all redirects first – $this->fetchRedirect(). In case of a “larger” number of redirects this is not ideal performance-wise. This might for example occur if you moved around a large number of pages over time (creating a lot of redirects).

In our case we generated flat redirects for a different source and discovered that with a million of generated redirects this doesn’t work at all (scale) at all since all redirects might not even fit in memory :-) For flat redirects a smarter fetching-logic might be possible in the first place.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 3

  1. Georg Ringer commented and changed status New Closed <span data-processor="relativetime" data-value="2026-11-02T20:35:11+00:00" > 11/02/26, 20:35 </span>

    closed as duplicate of #90143 which got a patch pending