Single Transaction stores complete database
Thomas Dingler <[email protected]> Fri, 20 Aug 2004 12:48:09 +0200
| Newsgroups | gmane.comp.java.ozone.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I have a small (ok, big) problem.
When I create a object in the database, or change a object that ends in
a transaction, all loaded database objects are are stored. This means
all objects are serialized on every transaction, which needs much time.
I run a local database and even If I try to fill the db with 6 items, I
realize, that after the creation of item 6, all other 5 items are
serialized, too.
Any ideas?
Greetings,
Thomas Dingler
Structure:
Item (abstract) => Room (will be created as db object)
----------Interfaces:
// Item.java
package myApp.Model.Items;
import org.ozoneDB.OzoneRemote;
public interface Item extends OzoneRemote {
public Class[] valueClasses();
public Class[] listValueClasses();
public long getUID();
public ItemContainer getContainer();
public void setUID(Long uid); /*update*/
}
// Room.java
package myApp.Model.Items;
public interface Room extends Item {
public String stringRepresentation();
}
---------Implementation:
// ItemImpl.java
package myApp.Model.Items;
import org.apache.log4j.Logger;
import org.ozoneDB.*;
public abstract class ItemImpl extends OzoneObject implements Item {
// some code
}
// RoomImpl.java
package myApp.Model.Items;
import org.apache.log4j.Logger;
public class RoomImpl extends ItemImpl implements Room {
// some code here
}
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285