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 945A9DA0EB for ; Tue, 4 Oct 2005 19:19:11 -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 99539-07 for ; Tue, 4 Oct 2005 22:19:08 +0000 (GMT) Received: from flake.decibel.org (flake.decibel.org [67.100.216.10]) by svr1.postgresql.org (Postfix) with ESMTP id C583BDA0E1 for ; Tue, 4 Oct 2005 19:19:09 -0300 (ADT) Received: by flake.decibel.org (Postfix, from userid 1001) id 2E7BF1527C; Tue, 4 Oct 2005 17:19:12 -0500 (CDT) Date: Tue, 4 Oct 2005 17:19:12 -0500 From: "Jim C. Nasby" To: K C Lau Cc: Simon Riggs , pgsql-performance@postgresql.org Subject: Re: SELECT LIMIT 1 VIEW Performance Issue Message-ID: <20051004221911.GJ40138@pervasive.com> References: <6.2.1.2.0.20050615100524.04f9d6a8@localhost> <6.2.1.2.0.20050922102035.07bcf2e0@localhost> <1127378456.4145.76.camel@localhost.localdomain> <6.2.1.2.0.20050922181009.02c36ca8@localhost> <1127474141.19345.10.camel@localhost.localdomain> <6.2.1.2.0.20050923195457.02c4fd30@localhost> <20051004211541.GB40138@pervasive.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051004211541.GB40138@pervasive.com> X-Operating-System: FreeBSD 4.11-RELEASE-p10 i386 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.008 required=5 tests=[AWL=0.008] X-Spam-Level: X-Archive-Number: 200510/57 X-Sequence-Number: 14825 On Tue, Oct 04, 2005 at 04:15:41PM -0500, Jim C. Nasby wrote: > > Index Cond: ((playerid)::text = '22220'::text) Also, why is playerid a text field? Comparing ints will certainly be faster... -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461