X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id AEEF7D857F for ; Sat, 15 Oct 2005 13:16:38 -0300 (ADT) 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 05408-01 for ; Sat, 15 Oct 2005 16:16:33 +0000 (GMT) Received: from fmf.vtu.lt (fmf.vtu.lt [193.219.145.206]) by svr1.postgresql.org (Postfix) with ESMTP id EC2FFD80DD for ; Sat, 15 Oct 2005 13:16:32 -0300 (ADT) Received: from fmf.vtu.lt (localhost [127.0.0.1]) by fmf.vtu.lt (Postfix) with ESMTP id 213B418473; Sat, 15 Oct 2005 19:16:30 +0300 (EEST) Received: from 81.7.89.65 (SquirrelMail authenticated user nso) by fmf.vtu.lt with HTTP; Sat, 15 Oct 2005 19:16:30 +0300 (EEST) Message-ID: <18133.81.7.89.65.1129392990.squirrel@fmf.vtu.lt> In-Reply-To: <29778.1129391647@sss.pgh.pa.us> References: <17260.81.7.89.65.1129382454.squirrel@fmf.vtu.lt> <29778.1129391647@sss.pgh.pa.us> Date: Sat, 15 Oct 2005 19:16:30 +0300 (EEST) Subject: Re: Bytea poor performance From: "NSO" To: "Tom Lane" Cc: pgsql-performance@postgresql.org User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-VGTU-MailScanner-OpenProtect-Information: Please contact the ISP for more information X-VGTU-MailScanner-OpenProtect: Found to be clean X-MailScanner-OpenProtect-MCPCheck: X-MailScanner-OpenProtect-From: nso@fmf.vtu.lt X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.272 required=5 tests=[AWL=-0.102, DNS_FROM_RFC_ABUSE=0.374] X-Spam-Level: X-Archive-Number: 200510/244 X-Sequence-Number: 15012 Hello, Yes, I can understand that, but then why the same app on the server machine is done in 4 seconds? (big difference from 20-30 seconds). I tryed to monitor network traffic and it is used only for 1-2% of total 100mbit. > "NSO" writes: >> Query runs very long: >> Total query runtime: 23625 ms. >> Data retrieval runtime: 266 ms. >> 50 rows retrieved. > > Notice that the query itself took 266ms. The rest of the time was > wasted by your client app trying to format a 23Kb by 50 row table > for display. You need to replace your client-side code with something > less inefficient about handling wide values. > > regards, tom lane > > -- > This message has been scanned for viruses and > dangerous content, and is believed to be clean. > > -- This message has been scanned for viruses and dangerous content, and is believed to be clean.