From 32f8b326ca1f1ad794532d5ab4b29f1bb57d628d Mon Sep 17 00:00:00 2001 From: Chris Diaz <24395592+chrisdaaz@users.noreply.github.com> Date: Wed, 14 May 2025 15:43:08 -0500 Subject: [PATCH 1/2] adds pagination to support large queries --- coldfront/config/plugins/api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/coldfront/config/plugins/api.py b/coldfront/config/plugins/api.py index 4c15fa8261..7fb6a2e5fd 100644 --- a/coldfront/config/plugins/api.py +++ b/coldfront/config/plugins/api.py @@ -20,4 +20,6 @@ 'DEFAULT_FILTER_BACKENDS': [ 'django_filters.rest_framework.DjangoFilterBackend' ], + 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination', + 'PAGE_SIZE': 100, } From a40d679eb56cd6a653953a92b32052fa91e9db81 Mon Sep 17 00:00:00 2001 From: Chris Diaz <24395592+chrisdaaz@users.noreply.github.com> Date: Wed, 11 Jun 2025 09:57:33 -0500 Subject: [PATCH 2/2] increase PAGE_SIZE --- coldfront/config/plugins/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coldfront/config/plugins/api.py b/coldfront/config/plugins/api.py index 7fb6a2e5fd..fc62baa358 100644 --- a/coldfront/config/plugins/api.py +++ b/coldfront/config/plugins/api.py @@ -21,5 +21,5 @@ 'django_filters.rest_framework.DjangoFilterBackend' ], 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination', - 'PAGE_SIZE': 100, + 'PAGE_SIZE': 750, }