Re: Unacceptable postgres performance vs. Microsoft sqlserver - Mailing list pgsql-general

From tosbalok@gmail.com
Subject Re: Unacceptable postgres performance vs. Microsoft sqlserver
Date
Msg-id 075a0b31-0ffa-4b51-9e14-fee4b17b5e20@f36g2000hsa.googlegroups.com
Whole thread Raw
In response to Re: Unacceptable postgres performance vs. Microsoft sqlserver  (Chris Browne <cbbrowne@acm.org>)
List pgsql-general
On Apr 14, 2:17 pm, david.t.wil...@gmail.com ("David Wilson") wrote:
> For instance, your count of distinct userids is probably not using the
> index you just created. If it still isn't using it after you ANALYZE
> the table, try rewriting the query using group by (select count(*)
> from (select userid from mytable group by userid) tmp). I recently had
> a similar performance issue on a 75m row table, and the above helped.
>
thanks.  There's a lot of good info in your post.  I'll give it a try.

pgsql-general by date:

Previous
From: Greg Smith
Date:
Subject: Re: Which Python library - psycopg2 or pygresql?
Next
From: "tosbalok@gmail.com"
Date:
Subject: Re: Unacceptable postgres performance vs. Microsoft sqlserver