scivarolo / barkeeper

Take the guesswork out of making cocktails at home
https://barkeeper.sebastiancivarolo.com
2 stars 0 forks source link

Remove reliance on separate ingredient query if possible #86

Open scivarolo opened 5 years ago

scivarolo commented 5 years ago

With Django API cocktails now include all of the necessary ingredient data, so it is not necessary to make a separate request for the ingredients for each cocktail. Let's remove the reliance on this separate ingredient data where possible to reduce the number of queries to the database.

scivarolo commented 5 years ago

Some of this was resolved in PR #88, but need there might be some more complicated pieces of code still using it.