jfinkels / flask-restless

NO LONGER MAINTAINED - A Flask extension for creating simple ReSTful JSON APIs from SQLAlchemy models.
https://flask-restless.readthedocs.io
GNU Affero General Public License v3.0
1.02k stars 301 forks source link

Avoiding full table scan when looking for inclusions. #677

Open rudaporto opened 6 years ago

rudaporto commented 6 years ago

This reduced the GET collection time from 3 seconds to 140ms: default pagination and a table with 80747 records. (database MySQL)

Can someone review this and let me know if I need something else to the this approved.