DISTINCT peformance differences
DISTINCT peformance differences
От:
"Christopher Kings-Lynne" <chriskl@familyhealth.com.au>
Дата:
If art_id is the primary key of the la table, is the latter faster? SELECT DISTINCT la.* FROM ... or SELECT DISTINCT ON (la.art_id) la.* FROM ... ie. Does this offer a performance improvement by only doing the distinct on the primary key or not? Thanks, Chris