X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 09CC6329EB9 for ; Tue, 21 Sep 2004 12:22:21 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 69351-09 for ; Tue, 21 Sep 2004 11:22:13 +0000 (GMT) Received: from outmx001.isp.belgacom.be (outmx001.isp.belgacom.be [195.238.3.51]) by svr1.postgresql.org (Postfix) with ESMTP id 35DDD329E90 for ; Tue, 21 Sep 2004 12:22:12 +0100 (BST) Received: from outmx001.isp.belgacom.be (localhost [127.0.0.1]) by outmx001.isp.belgacom.be (8.12.11/8.12.11/Skynet-OUT-2.22) with ESMTP id i8LBM24r003072 for ; Tue, 21 Sep 2004 13:22:02 +0200 (envelope-from ) Received: from ALAIN (72-250.242.81.adsl.skynet.be [81.242.250.72]) by outmx001.isp.belgacom.be (8.12.11/8.12.11/Skynet-OUT-2.22) with ESMTP id i8LBM1H1003041 for ; Tue, 21 Sep 2004 13:22:01 +0200 (envelope-from ) From: "Alain Reymond" To: pgsql-sql@postgresql.org Date: Tue, 21 Sep 2004 13:27:43 +0200 MIME-Version: 1.0 Subject: degradation in performance Message-ID: <41502C4F.15411.6617D37@localhost> X-mailer: Pegasus Mail for Windows (4.21c) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.9 tagged_above=0.0 required=5.0 tests=WEIRD_PORT X-Spam-Level: * X-Archive-Number: 200409/184 X-Sequence-Number: 19030 Good afternoon, I created a database with Postgres 7.3.4 under Linux RedHat 7.3 on a Dell PowerEdge server. One of the table is resultats(numbil, numpara, mesure, deviation) with an index on numbil. Each select on numbil returns up to 60 rows (that means 60 rows for one numbil with 60 different numpara) for example (200000,1,500,3.5) (200000,2,852,4.2) (200000,12,325,2.8) (200001,1,750,1.5) (200001,2,325,-1.5) (200001,8,328,1.2) etc.. This table contains now more than 6.500.000 rows and grows from 6000 rows a day. I have approximatively 1.250.000 rows a year. So I have 5 years of data online. Now, an insertion of 6000 lasts very loooong, up to one hour... I tried to insert 100.000 yesterday evening and it was not done in 8 hours. Do you have any idea how I can improve speed - apart from splitting the table every 2 or 3 years which is the the aim of a database! I thank you for your suggestions. Regards. Alain Reymond CEIA Bd Saint-Michel 119 1040 Bruxelles Tel: +32 2 736 04 58 Fax: +32 2 736 58 02 alain.reymond@ceia.com PGP key sur http://pgpkeys.mit.edu:11371