mirror of https://github.com/jumpserver/jumpserver
perf: While Asset amount (GLOBAL) > 5000 delay (20s) refresh user perm tree
parent
92b6286feb
commit
94ee3169dc
|
@ -67,5 +67,5 @@ def set_assets_size_to_setting(sender, **kwargs):
|
||||||
|
|
||||||
if amount > 20000:
|
if amount > 20000:
|
||||||
settings.ASSET_SIZE = 'large'
|
settings.ASSET_SIZE = 'large'
|
||||||
elif amount > 2000:
|
elif amount > 5000:
|
||||||
settings.ASSET_SIZE = 'medium'
|
settings.ASSET_SIZE = 'medium'
|
||||||
|
|
Loading…
Reference in New Issue