Huh, the ODMG slower thing is interesting as Armin just reemed us all out for letting the OTM get so much slower than ODMG ;-)

Right now there are a couple hidden nasties in the OTM -- I like the OTM a lot (if just so that I can do a query by identity without casting to a TransactionImpl) but it is a little bit less than mature at the moment. It is definately in the unstable category for 1.0.

Oleg is in the process of doing a major factoring job on parts of it to clean it up and fix a couple bugs (otm-dependent proxied collections not detecting deletes unless an explicit write lock is obtained on the parent is a particularly unpleasant one for me).

I will personally still be using OTM for my development, but we just switched from OTM to ODMG for major app in development where I work because of the relative maturity of the chunks of code. I hope to switch back to OTM in the not-too-distant future (or to JDO as it is shaping up to be a very thin wrapper around the OTM, and it isn't really a bad API from the client side, don't get me started on javax.jdo.spi though ;-) Providing a facade to swap between ODMG and OTM is pretty straightforward as the OTM can handle OQL style queries.

-Brian

On Apr 13, 2004, at 6:46 AM, Daniel Perry wrote:

From my experience of using both (i ended up doing an ODMG -> OTM
conversion!):

Note that i dont any of the more complicated stuff - just storing object
trees, collections, etc, and querying the database. Also i dont use locking
atall (one thing odmg does better i believe).


Go with OTM.

ODMG uses ODMG queries (sql like queries for selecting objects).
OTM use a criteria classes for querying.

I find OTM to be simpler, but more code intensive.

ODMG is slower - Ditching ODMG and moving to OTM speeded up our app by about
5x!!!!!


Doing complex (nested to several degrees "a.b.c...") in OTM works - i never
got it working in ODMG.


Daniel.


-----Original Message----- From: Jean-Francois Beaulac [mailto:[EMAIL PROTECTED] Sent: 07 April 2004 17:03 To: [EMAIL PROTECTED] Subject: Newbie Question : OTM or ODMG


Hi , i'm a real OJB newbie and I wonder which API should I use, i
searched the mailing list and read the entire documentation on the
website (i didnt read the entire JavaDoc of course) but i wasn't able to
find a great comparison between the two APIs.


It would be very usefull to me if somebody could post the main
differences between both APIs

Thanks
Jean-Francois Beaulac
trainee programmer @ www.beetext.com



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to