Skip to content

Commit afec45b

Browse files
committed
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.
1 parent 5985beb commit afec45b

File tree

1 file changed

+1
-1
lines changed
  • pydis_site/apps/api/viewsets/bot

1 file changed

+1
-1
lines changed

pydis_site/apps/api/viewsets/bot/user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
class UserListPagination(PageNumberPagination):
2020
"""Custom pagination class for the User Model."""
2121

22-
page_size = 10000
22+
page_size = 2500
2323
page_size_query_param = "page_size"
2424

2525
def get_next_page_number(self) -> typing.Optional[int]:

0 commit comments

Comments
 (0)