RE: [Hibernate] Caching of collections

2005-05-13 Thread Gavin King
[email protected] Subject: Re: [Hibernate] Caching of collections   You stated "there are some subtle concurrency issues" and that was what I keyed off on. I observed that we found Doug Lea's code extremely helpful in dealing with concurrency issues between a mem

Re: [Hibernate] Caching of collections

2005-05-11 Thread Lane Sharman
PROTECTED]] On Behalf Of Lane Sharman Sent: Tuesday, 10 May 2005 6:42 PM To: [email protected] Subject: Re: [Hibernate] Caching of collections the webmacro team (http://www.webmacro.org) struggled with many concurrency issues in its rendering engine several years ago. after m

RE: [Hibernate] Caching of collections

2005-05-10 Thread Gavin King
@lists.sourceforge.net Subject: Re: [Hibernate] Caching of collections the webmacro team (http://www.webmacro.org) struggled with many concurrency issues in its rendering engine several years ago. after much tribulation, we decided on using Doug Lea's conncurrent.jar. It solved some am

Re: [Hibernate] Caching of collections

2005-05-10 Thread Lane Sharman
bject: [Hibernate] Caching of collections I noticed that we don't put the collection in cache when creating an object ie item.addDistributors( new HashSet() ); session.persist(item); item will be in put in cache, but not item.distributors. Any reason for not

RE: [Hibernate] Caching of collections

2005-05-10 Thread Gavin King
Yes, there are some subtle concurrency issues. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Emmanuel Bernard Sent: Monday, 9 May 2005 4:52 AM To: [email protected] Subject: [Hibernate] Caching of collections I noticed that we don&#

[Hibernate] Caching of collections

2005-05-08 Thread Emmanuel Bernard
I noticed that we don't put the collection in cache when creating an object ie item.addDistributors( new HashSet() ); session.persist(item); item will be in put in cache, but not item.distributors. Any reason for not doing that? --- This SF.Net

Re: [Hibernate] Caching of cglib generated classes

2004-12-21 Thread Max Rydahl Andersen
On Tue, 21 Dec 2004 11:03:08 +0100, Joris Verschoor <[EMAIL PROTECTED]> wrote: Hi, I was wondering weather it's a good idea to make a patch to cache the generated classes by hibernate. This, to reduce startup time even more. Let me know, if I should try to whip something up I did a quick try

[Hibernate] Caching of cglib generated classes

2004-12-21 Thread Joris Verschoor
Hi, I was wondering weather it's a good idea to make a patch to cache the generated classes by hibernate. This, to reduce startup time even more. Let me know, if I should try to whip something up Joris --- SF email is sponsored by - The IT Prod

Re: [Hibernate] Caching cglib generated runtime proxies?

2003-09-29 Thread Juozas Baliuka
PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 29, 2003 7:56 AM Subject: [Hibernate] Caching cglib generated runtime proxies? > Hi All, > > I'm wondering if it's possible to do some generated-code at build time > instead of generating the proxies at

RE: [Hibernate] Caching cglib generated runtime proxies?

2003-09-29 Thread Mao, Dean (IHG)
me is a mere 1.4 seconds! Now to figure out why adding all my classes still consumed 4 seconds. -Original Message- From: Gavin King [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2003 5:37 AM To: Mao, Dean (IHG) Cc: 'Andrea Aime'; '[EMAIL PROTECTED]' Subject

Re: [Hibernate] Caching cglib generated runtime proxies?

2003-09-29 Thread Juozas Baliuka
- Original Message - From: "Mao, Dean (IHG)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 29, 2003 8:44 AM Subject: RE: [Hibernate] Caching cglib generated runtime proxies? > How would I turn on debug for cglib? looking at the api, it se

RE: [Hibernate] Caching cglib generated runtime proxies?

2003-09-29 Thread Mao, Dean (IHG)
perty doesn't seem to do anything when Hibernate initializes. -Original Message- From: Juozas Baliuka [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2003 1:21 AM To: Mao, Dean (IHG); [EMAIL PROTECTED] Subject: Re: [Hibernate] Caching cglib generated runtime proxies? There is syste

RE: [Hibernate] Caching cglib generated runtime proxies?

2003-09-29 Thread Mao, Dean (IHG)
meaning... you can't set this attribute in the Configuration.setProperty()? -Original Message- From: Gavin King [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2003 5:37 AM To: Mao, Dean (IHG) Cc: 'Andrea Aime'; '[EMAIL PROTECTED]' Subject: Re: [Hibernate

RE: [Hibernate] Caching cglib generated runtime proxies?

2003-09-29 Thread Mao, Dean (IHG)
Bauer [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2003 5:09 AM To: [EMAIL PROTECTED] Subject: Re: [Hibernate] Caching cglib generated runtime proxies? On 29 Sep (03:17), Mao, Dean (IHG) wrote: > for a startup time of 2.5 seconds, how many persisted classes are you using > with hibe

Re: [Hibernate] Caching cglib generated runtime proxies?

2003-09-29 Thread Gavin King
onday, September 29, 2003 3:44 AM To: Mao, Dean (IHG) Cc: '[EMAIL PROTECTED]' Subject: Re: [Hibernate] Caching cglib generated runtime proxies? Mao, Dean (IHG) wrote: 35 classes in 2.5 seconds? I don't believe you! Are you always so polite with people trying to help you? ;

Re: [Hibernate] Caching cglib generated runtime proxies?

2003-09-29 Thread Christian Bauer
On 29 Sep (03:17), Mao, Dean (IHG) wrote: > for a startup time of 2.5 seconds, how many persisted classes are you using > with hibernate? I'm having 50, ca. 2 seconds, Pentium M 1.6 Ghz. -- Christian Bauer [EMAIL PROTECTED] --- This sf.net e

RE: [Hibernate] Caching cglib generated runtime proxies?

2003-09-29 Thread Mao, Dean (IHG)
for a startup time of 2.5 seconds, how many persisted classes are you using with hibernate? -Original Message- From: Andrea Aime [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2003 3:15 AM To: Mao, Dean (IHG) Cc: '[EMAIL PROTECTED]' Subject: Re: [Hibernate] Caching cglib

RE: [Hibernate] Caching cglib generated runtime proxies?

2003-09-29 Thread Mao, Dean (IHG)
nagement type people... :-/ -Original Message- From: Andrea Aime [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2003 3:44 AM To: Mao, Dean (IHG) Cc: '[EMAIL PROTECTED]' Subject: Re: [Hibernate] Caching cglib generated runtime proxies? Mao, Dean (IHG) wrote: >35 classes in 2.5 secon

Re: [Hibernate] Caching cglib generated runtime proxies?

2003-09-29 Thread Andrea Aime
Mao, Dean (IHG) wrote: 35 classes in 2.5 seconds? I don't believe you! Are you always so polite with people trying to help you? ;-) I have optimized the logging too. How are you getting around the cglib initialization? The majority of my hibernate initialization time is consumed by the cgli

RE: [Hibernate] Caching cglib generated runtime proxies?

2003-09-29 Thread Mao, Dean (IHG)
Aime [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2003 3:27 AM To: Mao, Dean (IHG) Cc: '[EMAIL PROTECTED]' Subject: Re: [Hibernate] Caching cglib generated runtime proxies? Mao, Dean (IHG) wrote: >for a startup time of 2.5 seconds, how many persisted classes are you using >wit

Re: [Hibernate] Caching cglib generated runtime proxies?

2003-09-29 Thread Andrea Aime
Mao, Dean (IHG) wrote: for a startup time of 2.5 seconds, how many persisted classes are you using with hibernate? 35 classes. Oh, also disabling the logging provides a good improvement: LogManager manager = LogManager.getLogManager(); manager.reset(); This is a bit crude, better modify the lo

Re: [Hibernate] Caching cglib generated runtime proxies?

2003-09-29 Thread Andrea Aime
Mao, Dean (IHG) wrote: Hi All, I'm wondering if it's possible to do some generated-code at build time instead of generating the proxies at runtime. I'm using hibernate for a swing application and the majority of the initialization time is taken up by hibernate's initialization of the configurati

[Hibernate] Caching cglib generated runtime proxies?

2003-09-28 Thread Mao, Dean (IHG)
Hi All, I'm wondering if it's possible to do some generated-code at build time instead of generating the proxies at runtime. I'm using hibernate for a swing application and the majority of the initialization time is taken up by hibernate's initialization of the configuration object. (I've alread

[Hibernate] Caching of densly related data

2003-08-26 Thread Michał Mosiewicz
I've been trying to estimate how caching would influence the performance of my app. This app has a lot of parent-child relationships in different configurations, i.e. each object have childs in a bag, and mapped (two one-many relations). During the test I've added about 1000 objects randomly select

Re: [Hibernate] Caching

2002-10-09 Thread Gavin King
Collections are cached if (only if) they have their own subelement. - Original Message - From: Joost van de Wijgerd To: Gavin King Cc: hibernate list Sent: Wednesday, October 09, 2002 11:33 PM Subject: [Hibernate] Caching Gavin,   Relating to the

[Hibernate] Caching

2002-10-09 Thread Joost van de Wijgerd
Gavin,   Relating to the cache, I gather that collections that are defined inside a mapping are not cached? one would assume that you won't have to do a select for these collections since they can only be changed through the object itself? probably i'm wrong, but i just wanted to check this w