aurweb/web
Morten Linderud 613364b773 pkg_search_page: Limit number of results on package search
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>
2020-09-05 10:21:16 -04:00
..
html Fix PHP notices in the account form 2020-04-05 15:59:56 -04:00
lib pkg_search_page: Limit number of results on package search 2020-09-05 10:21:16 -04:00
locale Add dummy "web/locale/" directory. 2011-04-10 15:40:49 +02:00
template Properly escape passwords in the account edit form 2020-02-27 16:44:36 +01:00