What's Changed
- Remove minimum supported Python version on documentation by @carlos-villavicencio-adsk in #358
- Upgrade Azure Pipelines VM images by @carlos-villavicencio-adsk in #359
- Fix incorrect Shotgun import in Python API example by @sungbinlee in #355
- Optimize payload by preventing unnecessary data by @carlos-villavicencio-adsk in #360
Details Regarding "Optimize payload" feature
Remove unnecessary data in the payload when combining related queries before sending it to the server. This would improve overall performance decreasing network latency and server processing.
Affected methods
- find
- summarize
- text_search (API query_display_name_cache)
Detailed Description
The change should transform calls like:
sg.find('Asset', [['project', 'is', {'created_at': datetime.datetime(2015, 12, 16, 11, 2, 10, tzinfo), 'id': 72, 'name': 'Demo: Game', 'type': 'Project'}]])
as if the following had been called:
sg.find('Asset', [['project', 'is', {'id': 72, 'type': 'Project'}]])
This version also includes a new environmental variable to enable this feature. Please use it at initialization if you want to compare results or if you are getting any unexpected behavior.
export SHOTGUN_API_ENABLE_ENTITY_OPTIMIZATION=1
For in-depth review, check out the full source code: #360
New Contributors
- @sungbinlee made their first contribution in #355
Full Changelog: v3.6.2...v3.7.0