flask-restless icon indicating copy to clipboard operation
flask-restless copied to clipboard

Fetch all objects to include in one query to improve performance

Open Cotix opened this issue 5 years ago • 1 comments

Using an include results in fetching every object individually, even when this is not necessary. This commit evaluates the given query and uses the resulting objects instead. If your data model is properly configured, the important objects will already be fetched in this query. This improves some of our endpoint time from > 1 minute to 1 second.

Cotix avatar Jan 19 '19 14:01 Cotix

Simple but efficient. It did improve the performance of my app and it did not break any of my tests.

ajite avatar May 09 '19 09:05 ajite