Re: How to read query plan - Mailing list pgsql-performance

From Miroslav Šulc
Subject Re: How to read query plan
Date
Msg-id 42355249.8090101@startnet.cz
Whole thread Raw
In response to Re: How to read query plan  (John Arbash Meinel <john@arbash-meinel.com>)
Responses Re: How to read query plan
Re: How to read query plan
List pgsql-performance
John Arbash Meinel wrote:

>> In fact, on MySQL I didn't see any slow reactions so I didn't measure
>> and inspect it. But I can try it if I figure out how to copy the
>> database from PostgreSQL to MySQL.
>
>
> I figured you still had a copy of the MySQL around to compare to. You
> probably don't need to spend too much time on it yet.

So I have some results. I have tested the query on both PostgreSQL 8.0.1
and MySQL 4.1.8 with LIMIT set to 30 and OFFSET set to 6000. PostgreSQL
result is 11,667.916 ms, MySQL result is 448.4 ms.

Both databases are running on the same machine (my laptop) and contain
the same data. However there are some differences in the data table
definitions:
1) in PostgreSQL I use 'varchar(1)' for a lot of fields and in MySQL I
use 'enum'
2) in PostgreSQL in some cases I use connection fields that are not of
the same type (smallint <-> integer (SERIAL)), in MySQL I use the same types

>
> John
> =:->

Miroslav

Attachment

pgsql-performance by date:

Previous
From: Christopher Kings-Lynne
Date:
Subject: Re: column name is "LIMIT"
Next
From: Christopher Kings-Lynne
Date:
Subject: Re: How to read query plan