Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 25937 invoked from network); 14 Oct 2005 11:39:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Oct 2005 11:39:51 -0000 Received: (qmail 7909 invoked by uid 500); 14 Oct 2005 11:39:05 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 6713 invoked by uid 500); 14 Oct 2005 11:38:55 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 6230 invoked by uid 99); 14 Oct 2005 11:38:47 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Oct 2005 04:38:47 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [194.175.229.106] (HELO mail.seitenbau.net) (194.175.229.106) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Oct 2005 04:34:31 -0700 Received: from [195.127.188.18] (helo=www.seitenbau.net) by router1.seitenbau.net with esmtp (Exim 4.43) id 1EQNp6-0002lk-4z for torque-user@db.apache.org; Fri, 14 Oct 2005 13:34:04 +0200 In-Reply-To: <434F9047.7040202@dbamsystems.com> Subject: RE: Count records To: "Apache Torque Users List" X-Mailer: Lotus Notes Release 6.5 September 26, 2003 Message-ID: From: Thomas Fischer Date: Fri, 14 Oct 2005 13:34:03 +0200 X-MIMETrack: Serialize by Router on www/seitenbau(Release 6.5.1|January 21, 2004) at 14.10.2005 01:34:03 PM MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N The class org.apache.torque.util.CountHelper in the Torque runtime might provide what you are looking for. Thomas John Dunne schrieb am 14.10.2005 13:02:31: > Hi All, > > Is there a 'light' way to retrieve the number of records that would be > returned by a query without actually making the query via doSelect() and > then calling the size() method on the returned object? I've got records > that contain thousands of entries and it seems a waste to have to make > the system create a load of objects that might never be used! > > John. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org > For additional commands, e-mail: torque-user-help@db.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org