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 329875281E for ; Wed, 15 Jun 2005 15:07:09 -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 62722-04 for ; Wed, 15 Jun 2005 18:07:04 +0000 (GMT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by svr1.postgresql.org (Postfix) with ESMTP id AE53752819 for ; Wed, 15 Jun 2005 15:07:02 -0300 (ADT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DicCV-0004cQ-Q0 for pgsql-sql@postgresql.org; Wed, 15 Jun 2005 20:01:19 +0200 Received: from ppp-82-135-64-131.mnet-online.de ([82.135.64.131]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Jun 2005 20:01:19 +0200 Received: from spam_eater by ppp-82-135-64-131.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Jun 2005 20:01:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-sql@postgresql.org From: Thomas Kellerer Subject: Re: SELECT very slow Date: Wed, 15 Jun 2005 20:05:28 +0200 Lines: 26 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ppp-82-135-64-131.mnet-online.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7.6) Gecko/20050319 Mnenhy/0.6.0.104 X-Accept-Language: de, en In-Reply-To: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200506/173 X-Sequence-Number: 21774 PFC wrote on 14.06.2005 14:26: [...] > Now I fire up python, do a SELECT * from the table and retrieve all > the data as native objects... Hm, it takes about 1.3 seconds... on my > Pentium-M 1600 laptop... > > Don't you have a problem somewhere ? Are you sure it's not swapping > ? did you check memory ? Are you transferring all this data over the > network ? Might an obscure cabling problem have reverted your > connection to 10 Mbps ? I'm sure. Everything is running on the same machine, about 350 MB free memory. > Ouch. I saw you're on Windows so I tried it on the windows machine > there which has a postgres installed, over a 100Mbps network, querying > from my linux laptop. The windows machine is a piece of crap, > Pentium-II 300 and 256 MB Ram, it takes 7 seconds to retrieve the whole > table in a python native object. > It's not the program or Java. The same program takes about 20 seconds with Firebird and the exactly same data. Thomas