hn • r/hackernews
Comment on: Don't use DISTINCT as a "join-fixer"
At least generate some sizeable mock data before showing the query plans. The optimisations applied can be very different depending on the number of rows in each table.
Database developers often rely on DISTINCT as a quick fix for join problems, but without realistic data or detailed query plans this leads to unpredictable performance. QueryForge generates realistic mock datasets, visualizes query plans in real time, and recommends concrete alternatives to anti‑patterns, ensuring efficient and scalable SQL queries.