From: Loïc TREGOUËT <loic@cri74.org>
To: pgsql-admin@postgresql.org
Subject: speed Postgresql 7.0 vs PostgreSQL 6.5.2
Date: Mon, 18 Sep 2000 12:30:14 +0200
Message-ID: <39C5EEB6.B1C18AAE@cri74.org> (raw)
References: <004901c0206d$7ba35640$2a14a8c0@Protea.wipinfo.soft.net>
<39C4FC6D.ADD2C997@adinet.com.uy>
Hie ,
I've just install PostgreSQL 7.0.2 on i686-pc-linux-gnu (Pentium 233 with
64 Mo RAM)
But i've also PostgreSQL 6.5.2 "
" (P 450 with 256 Mo RAM)
I've dump one of my big database (500000 rows) on the new one .
I've made some test and one of my querie take 7 sec on the old server
1 sec on the new
The EXPLAIN seem to be different .
Is it a improvement or a mistake ?
With this good result , Postgresql 7.0 equals Mysql ! I'll be very happy , if
you confirm that PostgreSQL have such improve the speed ...
This is the request :
SELECT DISTINCT n.username from newlog2000 n , realms r where ( (n.username
like 'loic@%' ) and (r.host = 'toto.fr' ) and (
substr(n.username,strpos(n.username,'@')+1) = r.domain ) ) ;
NOTICE: QUERY PLAN: (on the new server PostgreSQL 7.0 200 Mhz 64 Mo RAM )
Unique (cost=253.85..254.07 rows=9 width=24)
-> Sort (cost=253.85..253.85 rows=91 width=24)
-> Nested Loop (cost=0.00..250.90 rows=91 width=24)
-> Seq Scan on realms r (cost=0.00..22.50 rows=10 width=12)
-> Index Scan using newuser2000 on newlog2000 n (cost=0.00..4.74
rows=905 width=12)
NOTICE: QUERY PLAN: (on the old server PostgreSQL 6.5 450 Mhz 256 Mo RAM)
Unique (cost=14107.55 rows=7897 width=24)
-> Sort (cost=14107.55 rows=7897 width=24)
-> Nested Loop (cost=14107.55 rows=7897 width=24)
-> Index Scan using newuser2000 on newlog2000 n (cost=9773.30
rows=658 width=12)
-> Seq Scan on realms r (cost=6.59 rows=120 width=12)
Thanks for all , and sorry for my english
....
loic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: loic@cri74.org
Subject: Re: speed Postgresql 7.0 vs PostgreSQL 6.5.2
In-Reply-To: <39C5EEB6.B1C18AAE@cri74.org>
References: <004901c0206d$7ba35640$2a14a8c0@Protea.wipinfo.soft.net> <39C4FC6D.ADD2C997@adinet.com.uy> <39C5EEB6.B1C18AAE@cri74.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox