X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E8E7A52815 for ; Fri, 15 Jul 2005 13:37:15 -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 87989-03 for ; Fri, 15 Jul 2005 16:37:07 +0000 (GMT) Received: from pop1.greatbasin.net (pop1.greatbasin.net [207.228.35.3]) by svr1.postgresql.org (Postfix) with ESMTP id C499D52D0F for ; Fri, 15 Jul 2005 13:37:05 -0300 (ADT) Received: from [172.16.1.121] (rno-dsl0b-131.gbis.net [216.82.145.131]) by pop1.greatbasin.net (8.12.10/8.12.10) with ESMTP id j6FGb0w3024754; Fri, 15 Jul 2005 09:37:00 -0700 In-Reply-To: <42D6FF0F.1020102@opencloud.com> References: <42D6FF0F.1020102@opencloud.com> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit Cc: pgsql-jdbc@postgresql.org From: Dianne Yumul Subject: Re: No. of rows on result set Date: Fri, 15 Jul 2005 09:37:00 -0700 To: Oliver Jowett X-Mailer: Apple Mail (2.622) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.005 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/97 X-Sequence-Number: 13245 On Jul 14, 2005, at 5:10 PM, Oliver Jowett wrote: > If you need to use last(), then TYPE_SCROLL_INSENSITIVE is the way to > go. > > Note that this means the driver will retrieve the entire resultset in > one go rather than possibly using cursors (if you've set fetchsize and > have autocommit off) -- you might have problems with big resultsets. If > so I'd go with COUNT. Ok, looking at the apps, the query either returns one row or a large resultset. But using TYPE_SCROLL_INSENSITIVE should not be a problem because fetchsize is not set and autocommit is not off. Thank you so much for the great help. Dianne