Skip to content

assetsSummary Optimization

Compare
Choose a tag to compare
@dchiquito dchiquito released this 22 Jul 17:56
· 4817 commits to master since this release
5cd8e3a

Turns out that the assetsSummary calculation was taking a long time
because each asset metadata was being fetched from the DB separately, so
a Version with 1000 assets meant 1000 SQL queries. This select_related
call should roll them up into a single large query, which cuts down on
network traffic.

This should resolve error 503/409 occurring during upload.