Looking for help with poor Ecto query performance

Thanks, again, to this wonderful community for your help in getting us through the issues described at the top of this thread. I’ve taken a bit of time to boil this down to an easier-to-follow story about performance in hopes that it can save the next person to encounter similar issues.

Enjoy: https://medium.com/@ericscouten/elixir-ecto-postgres-a-saga-about-database-performance-488ba59128e