Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm the OP of the DBA StackExchange post, and while yes, it does technically work in this case, you do lose some abilities. For one, its much harder to `count(*)` rows with `DISTINCT`. Also, `DISTINCT` uses a totally different mode in planning that requires first retrieving all the rows and then finally filtering them. This is _much_ slower and generally not very fun to deal with!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: