Loading nodes in collection on demand
"Wong Liong Hung" <[email protected]> Wed, 10 Nov 2004 17:21:44 +0800
| Newsgroups | gmane.comp.java.ozone.user |
|---|---|
| Message-ID | <[email protected]> |
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? What is the different between adding database object (extends OzoneObject) and adding serializable object (extends Serializable) into ozone collection, e.g. FullTreeMap? Thanks, --Wong L H ------------------------------------------------------- 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