django-storages icon indicating copy to clipboard operation
django-storages copied to clipboard

Renaming Bucket attribute name

Open kjnez opened this issue 7 months ago • 0 comments

I have several very slow responses in a django project and usually the terminal output is like the following:

DEBUG 2024-07-19 08:26:57,116 loaders 62693 140288224908992 Loading JSON file: /home/admin/.pyenv/versions/3.11.9/envs/django/lib/python3.11/site-packages/boto3/data/s3/2006-03-01/resources-1.json DEBUG 2024-07-19 08:26:57,120 loaders 62693 140288224908992 Loading JSON file: /home/admin/.pyenv/versions/3.11.9/envs/django/lib/python3.11/site-packages/botocore/data/endpoints.json DEBUG 2024-07-19 08:26:57,149 loaders 62693 140288224908992 Loading JSON file: /home/admin/.pyenv/versions/3.11.9/envs/django/lib/python3.11/site-packages/botocore/data/sdk-default-configuration.json DEBUG 2024-07-19 08:26:57,169 loaders 62693 140288224908992 Loading JSON file: /home/admin/.pyenv/versions/3.11.9/envs/django/lib/python3.11/site-packages/botocore/data/s3/2006-03-01/service-2.json.gz DEBUG 2024-07-19 08:26:57,202 loaders 62693 140288224908992 Loading JSON file: /home/admin/.pyenv/versions/3.11.9/envs/django/lib/python3.11/site-packages/botocore/data/s3/2006-03-01/endpoint-rule-set-1.json.gz DEBUG 2024-07-19 08:26:57,220 loaders 62693 140288224908992 Loading JSON file: /home/admin/.pyenv/versions/3.11.9/envs/django/lib/python3.11/site-packages/botocore/data/partitions.json DEBUG 2024-07-19 08:26:57,225 configprovider 62693 140288224908992 Looking for endpoint for s3 via: environment_service DEBUG 2024-07-19 08:26:57,225 configprovider 62693 140288224908992 Looking for endpoint for s3 via: environment_global DEBUG 2024-07-19 08:26:57,225 configprovider 62693 140288224908992 Looking for endpoint for s3 via: config_service DEBUG 2024-07-19 08:26:57,225 configprovider 62693 140288224908992 Looking for endpoint for s3 via: config_global DEBUG 2024-07-19 08:26:57,225 configprovider 62693 140288224908992 No configured endpoint found. DEBUG 2024-07-19 08:26:57,236 loaders 62693 140288224908992 Loading JSON file: /home/admin/.pyenv/versions/3.11.9/envs/django/lib/python3.11/site-packages/botocore/data/_retry.json DEBUG 2024-07-19 08:26:57,241 factory 62693 140288224908992 Loading s3:s3 DEBUG 2024-07-19 08:26:57,245 factory 62693 140288224908992 Loading s3:Bucket DEBUG 2024-07-19 08:26:57,246 model 62693 140288224908992 Renaming Bucket attribute name

Is it normal that boto looks for endpoint but finds no configured endpoint? What about renaming bucket attribute name? Ultimately the response is successful. It is just slow (>15s).

kjnez avatar Jul 19 '24 08:07 kjnez