First/Last per Group: PostgreSQL DISTINCT ON and MongoDB DISTINCT_SCAN Performance

📰 Dev.to · Franck Pachot

On Stack Overflow, the most frequent question for PostgreSQL is: "Select first row in each GROUP BY...

Published 3 Oct 2025
Read full article → ← Back to Reads