mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
The current package search query is quite poorly optimized and becomes a resource hog when the offsets gets large enough. This DoSes the service. A quick fix is to just ensure we have some limit to the number of hits we return. The current hardcoding of 2500 is based on the following: * 250 hits per page max * 10 pages We can maybe consider having it lower, but it seems easier to just have this a multiple of 250 in the first iteration. Signed-off-by: Morten Linderud <morten@linderud.pw> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org> |
||
---|---|---|
.. | ||
acctfuncs.inc.php | ||
aur.inc.php | ||
aurjson.class.php | ||
cachefuncs.inc.php | ||
confparser.inc.php | ||
credentials.inc.php | ||
DB.class.php | ||
feedcreator.class.php | ||
gettext.php | ||
pkgbasefuncs.inc.php | ||
pkgfuncs.inc.php | ||
pkgreqfuncs.inc.php | ||
routing.inc.php | ||
stats.inc.php | ||
streams.php | ||
timezone.inc.php | ||
translator.inc.php | ||
version.inc.php |