Re: SELECT DISTINCT Performance Issue - Mailing list pgsql-performance

From PFC
Subject Re: SELECT DISTINCT Performance Issue
Date
Msg-id op.srx5mdsmth1vuj@localhost
Whole thread Raw
In response to SELECT DISTINCT Performance Issue  (K C Lau <KCLau@attglobal.net>)
Responses Re: SELECT DISTINCT Performance Issue  (K C Lau <kclau60@netvigator.com>)
List pgsql-performance

> Previously, we have also tried to use LIMIT 1 instead of DISTINCT, but
> the performance was no better:
> select PlayerID,AtDate from Player where PlayerID='22220' order by
> PlayerID desc, AtDate desc LIMIT 1

    The DISTINCT query will pull out all the rows and keep only one, so the
one with LIMIT should be faster. Can you post explain analyze of the LIMIT
query ?

pgsql-performance by date:

Previous
From: Andrew McMillan
Date:
Subject: Re: Postgresql and Software RAID/LVM
Next
From: PFC
Date:
Subject: Re: Need help to decide Mysql vs Postgres