Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 6ED8B9FB1EC for ; Wed, 15 Nov 2006 10:17:51 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 83447-04 for ; Wed, 15 Nov 2006 10:17:45 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by postgresql.org (Postfix) with ESMTP id 96DF39FA433 for ; Wed, 15 Nov 2006 10:17:44 -0400 (AST) Received: by ug-out-1314.google.com with SMTP id k3so119181ugf for ; Wed, 15 Nov 2006 06:17:43 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gBX9BhIS29TVyzhuk7xr4OGus/JcN0hmVt00CyOUb6jzjIi4+TdIeZMHVoW8pYGPPA0CnA/9A+QXLo2DcgESXtfk7ry4/ZKeVWNRQbAwD+blem8D4tv0IZqpU2//niqEdZaP2P+0SXE1oLDfDoK1Q7gSwWaQNMAl+4Mg9lUkYVY= Received: by 10.78.39.16 with SMTP id m16mr374444hum.1163600262644; Wed, 15 Nov 2006 06:17:42 -0800 (PST) Received: by 10.78.45.3 with HTTP; Wed, 15 Nov 2006 06:17:42 -0800 (PST) Message-ID: Date: Wed, 15 Nov 2006 09:17:42 -0500 From: "Merlin Moncure" To: "AMIR FRANCO D. JOVEN" Subject: Re: Slow SELECT on three or more clients Cc: pgsql-performance@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/111 X-Sequence-Number: 21881 On 11/15/06, AMIR FRANCO D. JOVEN wrote: > Hi! > > Im new to PostgreSQL. > > My current project uses PostgreSQL 7.3.4. > > the problem is like this: > > I have a table with 94 fields and a select with only one resultset in only > one client consumes about 0.86 seconds. > The client executes three 'select' statements to perform the task which > consumes 2.58 seconds. > With only one client this is acceptable, but the real problem is as i add > more clients, it goes more and more slower. > > for a single select with one field in one resultset, is 0.86 seconds > normal? > > I tried vacuuming and reindexing but to no avail. > the total record count in that particular table is 456,541. returning 450k rows in around 1 second is about right for a result set with one field. imo, your best bet is to try and break up your table and reorganize it so you dont have to query the whole thing every time. why do you need to return all the rows over and over? merlin