Received: from aravis.cur-archamps.fr (aravis.cur-archamps.fr [195.202.0.99]) by hub.org (8.10.1/8.10.1) with ESMTP id e8IAUKs01227 for ; Mon, 18 Sep 2000 06:30:20 -0400 (EDT) Received: from node03.cur-archamps.fr (node03.cur-archamps.fr [195.202.0.8]) by aravis.cur-archamps.fr (8.9.3/8.9.3) with ESMTP id MAA17254 for ; Mon, 18 Sep 2000 12:30:14 +0200 Received: from cri74.org (pc01.cri.cur-archamps.fr [10.10.10.2]) by node03.cur-archamps.fr (8.9.3/8.9.3) with ESMTP id MAA24794 for ; Mon, 18 Sep 2000 12:30:14 +0200 Message-ID: <39C5EEB6.B1C18AAE@cri74.org> Date: Mon, 18 Sep 2000 12:30:14 +0200 From: =?iso-8859-1?Q?Lo=EFc=20TREGOU=CBT?= X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.13 i686) X-Accept-Language: fr-FR, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: speed Postgresql 7.0 vs PostgreSQL 6.5.2 References: <004901c0206d$7ba35640$2a14a8c0@Protea.wipinfo.soft.net> <39C4FC6D.ADD2C997@adinet.com.uy> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200009/54 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