SUPER Slow Related REST APIs for DreamFactory

It;s not easy to answer such a topic since there is not enough information about your database, DF setup, foreign keys, virtual keys etc. I advice you to enable mysql query logs and perform api request and ci request to see differences between SQL queries. For example DF may be using virtual foreign keys, not optimized/indexed fields to seek data etc. If the queries are exactly the same, look for the previous queries DF is performing and be sure that caching is not affecting the results (perform requests in between stopping/starting mysql service) etc.

1 Like