Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id DE3B52E2E92 for ; Sun, 2 Dec 2007 08:35:49 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 14064-09 for ; Sun, 2 Dec 2007 08:35:47 -0400 (AST) Received: from aibo.runbox.com (aibo.runbox.com [193.71.199.94]) by postgresql.org (Postfix) with ESMTP id 5D3D92E022A for ; Sun, 2 Dec 2007 08:35:47 -0400 (AST) Received: from [10.9.9.130] (helo=fenris.runbox.com) by greyhound.runbox.com with esmtp (Exim 4.50) id 1Iyo2z-00016k-H7 for pgsql-performance@postgresql.org; Sun, 02 Dec 2007 13:35:45 +0100 Received: from mail by fenris.runbox.com with local (Exim 4.50) id 1Iyo2z-00055w-E1 for pgsql-performance@postgresql.org; Sun, 02 Dec 2007 13:35:45 +0100 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Received: from [78.60.33.99] by secure.runbox.com with http (uid:663718) (RMM 4.0); for ; Sun, 02 Dec 2007 12:35:45 GMT From: "Mindaugas" To: pgsql-performance@postgresql.org Subject: Re: Dealing with big tables Date: Sun, 02 Dec 2007 14:35:45 +0200 (EET) X-Sender: 663718 X-Mailer: RMM References: <87r6i5gv06.fsf@oxford.xeocode.com> In-Reply-To: <87r6i5gv06.fsf@oxford.xeocode.com> Message-Id: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/11 X-Sequence-Number: 27827 > What exactly is your goal? Do you need this query to respond in under a > specific limit? What limit? Do you need to be able to execute many instan= ces > of this query in less than 5s * the number of executions? Or do you have = more > complex queries that you're really worried about? I'd like this query to respond under a specific time limit. 5s now is OK = but 50s later for 10000 rows is too slow. > Both Greenplum and EnterpriseDB have products in this space which let you > break the query up over several servers but at least in EnterpriseDB's ca= se > it's targeted towards running complex queries which take longer than this= to > run. I doubt you would see much benefit for a 5s query after the overhead= of > sending parts of the query out to different machines and then reassemblin= g the > results. If your real concern is with more complex queries they may make = sense > though. It's also possible that paying someone to come look at your datab= ase > will find other ways to speed it up. I see. This query also should benefit alot even when run in parallel on o= ne server. Since anyway most time it spends in waiting for storage to respo= nd. Also off list I was pointed out about covering indexes in MySQL. But they= are not supported in PostgreSQL, aren't they? Mindaugas