You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are many unnecessary roundtrips in manage.py:
Each time an image is uploaded, the whole list of images is retrieved anew, instead of just adding the newly uploaded image to the list.
For the subsequent call of set_properties, the whole list of images is again retrieved, when the actual image object could be passed to the function instead of just the name. (Mind you that this is the only call to set_properties ever, so it could readily be changed!)
For each of the potential adjustments of the metadata (min disk, min ram, os hidden, as well as each and every property that is missing or has the wrong value), a dedicated call to update_image is performed, when the changes could (easily!) be aggregated and the image updated only once.
The text was updated successfully, but these errors were encountered:
There are many unnecessary roundtrips in
manage.py
:set_properties
, the whole list of images is again retrieved, when the actual image object could be passed to the function instead of just the name. (Mind you that this is the only call toset_properties
ever, so it could readily be changed!)update_image
is performed, when the changes could (easily!) be aggregated and the image updated only once.The text was updated successfully, but these errors were encountered: