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
Thank you for developing this great package. I am very grateful.
Would it be possible to add some query optimization to the get_collection (and get_resource) method based on the included resources? for example, i added the following code to line 621 of serializer.py.
for local in include.keys():
if local:
loader = joinedload(local)
for remote in include[local]:
if '.' in remote:
for r in remote.split('.'):
loader.joinedload(r)
else:
loader.joinedload(remote)
collection = collection.options(loader)
Thanks,
Omar
The text was updated successfully, but these errors were encountered:
zabano
changed the title
request to add query optimization to get_collection
request to add query optimization
Jun 16, 2016
Hi Colton,
Thank you for developing this great package. I am very grateful.
Would it be possible to add some query optimization to the get_collection (and get_resource) method based on the included resources? for example, i added the following code to line 621 of serializer.py.
Thanks,
Omar
The text was updated successfully, but these errors were encountered: