3 ms·
Maybe I'm missing something, but the final query in the article seems complicated/inefficient for no apparent reason. IMO this one should be better: SELECT D
by felixge 9y ago
Maybe I'm missing something, but the final query in the article seems complicated/inefficient for no apparent reason. IMO this one should be better:
SELECT DISTINCT ON (message_id)
message_id,
status
FROM emails
ORDER BY message_id, created_at;
- srt32 9y agoGreat feedback! You are right and the post has been updated to reflect this feedback!