Skip to content

v3.7.0

Latest
Compare
Choose a tag to compare
@carlos-villavicencio-adsk carlos-villavicencio-adsk released this 09 Dec 18:42
31df878

What's Changed

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

Full Changelog: v3.6.2...v3.7.0