How to Optimize SQL Query with Multiple JOINs | Dark Hacker News