Re: Loading nodes in collection on demand
Leo Mekenkamp <[email protected]> Wed, 10 Nov 2004 20:45:25 +0100
| Newsgroups | gmane.comp.java.ozone.user |
|---|---|
| Message-ID | <1100115925.3524.7.camel@jupiter> |
On Wed, 2004-11-10 at 10:21, Wong Liong Hung wrote: > Hi, > > Realized that when calling LocalDatabase.objectForName() on a FullTreeMap > object which has been created in the database, the readObject() method of > the nodes the collection contains is being called. Based on that, it seems > to me that all of the nodes in the collection gets loaded into the memory. > The numbers of the nodes in the collection could be quite large and loading > them would require lots of RAM. > Should the node in the collection be loaded on demand? NodeTreeMap does 'loading on demand'. > What is the different between adding database object (extends OzoneObject) > and adding serializable object (extends Serializable) into ozone collection, > e.g. FullTreeMap? Ozone aware collections behave just like 'normal' ozone objects. I.e. 'mere' serializables are always 'included' in an ozone object. Cheers, Leo -- Leo Mekenkamp; phone: +31 641234919 Care about freedom and innovation? http://openoffice.org, http://ozone-db.org, http://mozilla.org, http://linux.org ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click