From bd56697d6d7862aa7ac39e9264e8a0cd9ebca514 Mon Sep 17 00:00:00 2001 From: Bai Date: Thu, 10 Oct 2024 17:50:03 +0800 Subject: [PATCH] perf: DEFAULT_PAGE_SIZE same as MAX_LIMIT_PER_PAGE --- apps/jumpserver/conf.py | 1 - apps/jumpserver/settings/custom.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/jumpserver/conf.py b/apps/jumpserver/conf.py index 0e5843560..2ad01de08 100644 --- a/apps/jumpserver/conf.py +++ b/apps/jumpserver/conf.py @@ -659,7 +659,6 @@ class Config(dict): # API 分页 'MAX_LIMIT_PER_PAGE': 10000, - 'DEFAULT_PAGE_SIZE': None, 'LIMIT_SUPER_PRIV': False, diff --git a/apps/jumpserver/settings/custom.py b/apps/jumpserver/settings/custom.py index 9161e2252..ea492d252 100644 --- a/apps/jumpserver/settings/custom.py +++ b/apps/jumpserver/settings/custom.py @@ -210,7 +210,7 @@ SESSION_RSA_PUBLIC_KEY_NAME = 'jms_public_key' OPERATE_LOG_ELASTICSEARCH_CONFIG = CONFIG.OPERATE_LOG_ELASTICSEARCH_CONFIG MAX_LIMIT_PER_PAGE = CONFIG.MAX_LIMIT_PER_PAGE -DEFAULT_PAGE_SIZE = CONFIG.DEFAULT_PAGE_SIZE +DEFAULT_PAGE_SIZE = CONFIG.MAX_LIMIT_PER_PAGE PERM_TREE_REGEN_INTERVAL = CONFIG.PERM_TREE_REGEN_INTERVAL # Magnus DB Port