× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Joe,

Hibernate stores objects in memory with a changed flag. Changed items
are flushed on commit but it can be forced with a flush. Most of the
time you make all your changes in memory and then commit at the end.
Hibernate can be configured to prevent updates based on stale data.
There is a default order for changes that works 99% of the time but
occasionally you will need to flush. Most significant for performance is
caching and lazy initialization, which you have to use carefully to
avoid issues like stale data and initialized lazy relationships.

David Morris

>>> joepluta@xxxxxxxxxxxxxxxxx 3/12/2004 11:27:31 AM >>>
> From: David Morris
> 
> The only real difference is
> that I change an object model in memory and Hibernate flushes those
> changes on a commit.

Ah, now we're getting into some interesting areas.

Personally, I don't care about SQL input.  Tweaking inquiries is
always
a game and I don't much care for it.  But caching requests and
flushing
changes on commit, that can be significant.  On a typical transaction
run, do you only commit after the entire batch, or do you commit on a
transaction by transaction basis?

Caching is a time-honored way of reducing disk latency, but it has
certain drawbacks, one of which is the architectural overhead.  If
you're using entity beans as a way of encapsulating a caching
methodology, that's to my mind an exceptionally astute use of the
technology.  The concern is over lost data in an extraordinary
exception
situation, but I imagine you've got that addressed.

Since caching is in effect bringing a portion of the file into memory,
it would be nice to compare that against the same application where
the
affected files are pinned into RAM.

Joe

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.