Re: More grist for the PostgreSQL vs MySQL mill

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Michael Nolan" <htfoot(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: More grist for the PostgreSQL vs MySQL mill
Date: 2007-01-21 01:25:31
Message-ID: 16963.1169342731@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Michael Nolan" <htfoot(at)gmail(dot)com> writes:
> select count(*) from memmast where memid in (select plr_rated_memid from
> tnmt_plr where plr_eventid in ('200607163681');

> This query takes about a second on PostgreSQL but takes OVER SEVEN MINUTES
> on MySQL!

Yeah, and we probably would have sucked about as badly before 7.4 or so.
There's a long way from "having subselects" to being able to optimize
them decently. AFAIK mysql is still at the "we've got subselects!"
stage ...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John Meyer 2007-01-21 04:09:17 Re: More grist for the PostgreSQL vs MySQL mill
Previous Message Tom Lane 2007-01-21 01:14:53 Re: More grist for the PostgreSQL vs MySQL mill