RE: [OJB-developers] Select count(x)
Brought to you by:
thma
From: Charles A. <cha...@hp...> - 2001-11-12 15:24:33
|
Hi all; [snip] > I would suggest to use the PersistenceBroker.getIteratorByQuery(...). > This will give you full control on when and how many objects are to > instantiated. It will also reduce memory load as there are only > references to the objects in the current page (say 20) and not to all > objects in the collection (say 10000). This will help the Java Garbage > collector to do a better job. Is there a way, using the getIteratorByQuery, of *not* instatiating the objects on a .next call ? I don't think there is, but I wanted to check to be sure. I would like to be able to skip the first n records of the record set without instantion of the objects; this may well be more resource-friendly. Cheers, Charles. This email and any attachments are strictly confidential and are intended solely for the addressee. If you are not the intended recipient you must not disclose, forward, copy or take any action in reliance on this message or its attachments. If you have received this email in error please notify the sender as soon as possible and delete it from your computer systems. Any views or opinions presented are solely those of the author and do not necessarily reflect those of HPD Software Limited or its affiliates. At present the integrity of email across the internet cannot be guaranteed and messages sent via this medium are potentially at risk. All liability is excluded to the extent permitted by law for any claims arising as a re- sult of the use of this medium to transmit information by or to HPD Software Limited or its affiliates. |