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
You have nested db queries in your crewHandler.js (like us!) it might be worth looking into which ones you could fully do in the model - i.e. write on DB query that returns everything you need in one go.
I think we might need some clarification Jack. we have to tables crew and cast and they are not connected to each other. Maybe they can become one table but that would take time to rearrange all the queries and schema structure. in crewModels.js we are making to separate queries to two different tables.
You have nested db queries in your crewHandler.js (like us!) it might be worth looking into which ones you could fully do in the model - i.e. write on DB query that returns everything you need in one go.
SQLFiddle is great for testing complex queries.
The text was updated successfully, but these errors were encountered: