aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2021-10-06 23:01:48 +0200
committerGravatar Johannes Christ <[email protected]>2021-10-09 18:18:33 +0200
commitafec45b596568817d8921e9c0eb355db95bf10a7 (patch)
tree7959f5789647cbea08ddaa7a5fed0045321cb72a
parentMerge pull request #606 from doublevcodes/patch-1 (diff)
Decrease page size for user list endpoint.
From some debugging via python-discord/kubernetes#96, we have determined that this endpoint results in high latencies to the site and eventually Kubernetes killing off site pods randomly.
-rw-r--r--pydis_site/apps/api/viewsets/bot/user.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/apps/api/viewsets/bot/user.py b/pydis_site/apps/api/viewsets/bot/user.py
index 0356e193..22d13dc4 100644
--- a/pydis_site/apps/api/viewsets/bot/user.py
+++ b/pydis_site/apps/api/viewsets/bot/user.py
@@ -19,7 +19,7 @@ from pydis_site.apps.api.serializers import UserSerializer
class UserListPagination(PageNumberPagination):
"""Custom pagination class for the User Model."""
- page_size = 10000
+ page_size = 2500
page_size_query_param = "page_size"
def get_next_page_number(self) -> typing.Optional[int]: