X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 50806D1B89D for ; Mon, 25 Aug 2003 17:38:24 -0300 (ADT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 33564-06 for ; Mon, 25 Aug 2003 17:37:55 -0300 (ADT) Received: from mail2.fbab.net (mail2.fbab.net [195.54.134.228]) by svr1.postgresql.org (Postfix) with SMTP id 5BE9DD1B550 for ; Mon, 25 Aug 2003 17:37:52 -0300 (ADT) Received: (qmail 31972 invoked by uid 136); 25 Aug 2003 20:37:37 -0000 Received: from mag@fbab.net by mail2.fbab.net by uid 133 with qmail-scanner-1.20rc1 (avp: 4.0.3.0. Clear:RC:0:. Processed in 0.058429 secs); 25 Aug 2003 20:37:37 -0000 Received: from unknown (HELO TEST11) (magpool1@195.54.134.132) by mail2.fbab.net with SMTP; 25 Aug 2003 20:37:37 -0000 Message-ID: <007f01c36b48$b0f06df0$f80c0a0a@mnd> From: "Magnus Naeslund(f)" To: "Bupp Phillips" Cc: References: Subject: Re: What is the fastest way to get a resultset Date: Mon, 25 Aug 2003 22:37:24 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/331 X-Sequence-Number: 3147 Bupp Phillips wrote: > I'm very new to Postgresql, so don't beat me up to bad if you see a > problem, just inform me what I've done wrong. > > I'm use Postgresql 7.2 (PeerDirect's Windows port) on Win2000 384MB > RAM 10GB of Free space 800 Mhz, using the ODBC driver 7.03.01.00. > > I have a table that has 103,000 records in it (record size is about > 953 bytes) and when I do a select all (select * from ) it > takes a whopping 30 secs for the data to return!! > > SQLServer on the other hand takes 6 secs, but you can also use what is > called a firehose cursor, which will return the data in < 1 sec. > > I have done everything that I know how to speed this up, does anyone > have any advise? > Probably you need to fetch more than one row at a time. I made that misstake once myself :) Magnus