Re: [Hibernate] Re: Caching cglib generated runtime proxies?

2003-09-30 Thread Andrea Aime
Mao, Dean (IHG) wrote: I agree that it's not really that slow, but it feels slow when the application is a heavyweight client side app that people often open and close all the time. And the majority of the time is spent doing the cglib stuff... but now I have optimized hibernate to load in 5 sec

Re: [Hibernate] Caching cglib generated runtime proxies?

2003-09-29 Thread Andrea Aime
has a Ghz machine these days, and it can take as much as 5 seconds on a 500/700 Mhz PC (still quite common in many offices around here). Best regards Andrea Aime --- This sf.net email is sponsored by:ThinkGeek Welcome to geek he

Re: [Hibernate] Caching cglib generated runtime proxies?

2003-09-29 Thread Andrea Aime
logging levels for hibernate so that all the mapping information printed at startup time is not printed at all. Best regards Andrea Aime --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf

Re: [Hibernate] Caching cglib generated runtime proxies?

2003-09-29 Thread Andrea Aime
uot;many small files" pattern like the linux reisersfs filesystem). With these I can get my app startup time down to 2.5 seconds on a 1200 Mhz Duron with a quite old ntfs filesystem, and it's cpu bound now (the other hibernate initialization

Re: [Hibernate] Reducing startup time (with a small solution)

2003-09-29 Thread Andrea Aime
folder (in your java installation) or follow alternative directions given in the Jade javadoc. Then, remember to validate you mapping file twice ;-) before asking the mailing list about a problem that may arise from the mapping file itself (right, Gavin? ;-) ) Hope this helps. Best

Re: [Hibernate] Reducing startup time (with a small solution)

2003-09-21 Thread Andrea Aime
n King" <[EMAIL PROTECTED]> To: "Andrea Aime" <[EMAIL PROTECTED]> Cc: "hibernate list" <[EMAIL PROTECTED]> Sent: Saturday, September 13, 2003 3:16 PM Subject: Re: [Hibernate] Reducing startup time (with a small solution) > Andrea, I was actuall

[Hibernate] Reducing startup time (with a small solution)

2003-09-10 Thread Andrea Aime
l validity with the IDE anyway (you don't need to check it again and again when you're in production, and morevoer a reduced startup time means more productive debugging ;-) Oh, PC is a Duron 1200, 512 MB RAM, Win2000, j2sdk1.4.2_01. Best

Re: [Hibernate] JDO 2.0 Discussions

2003-08-20 Thread Andrea Aime
ead_id=20978&article_count=36 Best regards Andrea Aime --- This SF.net email is sponsored by Dice.com. Did you know that Dice has over 25,000 tech jobs available today? From careers in IT to Engineering to Tech Sales, Dice has tech jobs fro

Re: [Hibernate] Session-less OR-mapping

2003-08-19 Thread Andrea Aime
max wrote: On Sunday 17 August 2003 21:41, Max Rydahl Andersen wrote: > how about just calling clear() on the session after each "cache less" > work you need ? > Oh, by the way, there is no "clear()" method in Session interface as of Hibernate 2.0.2. Is it a recent (CVS) addition? Or you do mean t

Re: [Hibernate] Session-less OR-mapping

2003-08-18 Thread Andrea Aime
On Sunday 17 August 2003 21:41, Max Rydahl Andersen wrote: > how about just calling clear() on the session after each "cache less" > work you need ? > Uhm... what is the overhead of inserting the objects in the cache to remove them afterwards if you're inserting 200.000 bjects in the database? Usi

Re: [Hibernate] Session-less OR-mapping

2003-08-17 Thread Andrea Aime
On Friday 15 August 2003 06:15, [EMAIL PROTECTED] wrote: > I guess it would be easily possible to turn the cache *off*. > > But what do you do about circular references? > > You get exposed to stack overflows w/o a cache. Uh, I see, maybe just keep a statement-local list of known object ids (if

[Hibernate] Session-less OR-mapping

2003-08-14 Thread Andrea Aime
k it's too complicated to have another option, a cache-less behaviour? If you can give pointers on how to implement it I try to code it myself (for the next project, since this one already use hand-made statements, but I like to see Hibernate become more flexible) Best rega

Re: [Hibernate] Tom Cellucci's database reverse engineering tool

2002-11-09 Thread Andrea Aime
ay, ten open editors to have a look at the whole mapping (A refers a B class, what is it?... we'll, let's open B.hbm.xml) and moreover you have more code to write... Frankly I just see disadvantages in having more than a single

[Hibernate] Another bug (this is not my lucky day...)

2002-10-24 Thread Andrea Aime
I've found another bug... let's consider the following mapping: the following query: Iterator num = s.iterate("select max(c.idCode) from c in " + Customer.class); will return the max of the id property, not that of idCode! Changing the column name doesn't help, changing the

Re: [Hibernate] Mass delete and insert performance problems

2002-10-24 Thread Andrea Aime
Gavin King wrote: There are a couple of different issues in this: [...] Im also not sure why the inserts are slow. They shouldn't be. Have you tried disabling batch updates hibernate.use_jdbc_batch=false? Gavin Tried now... seems to be visibly faster without batch updates :-)... but why? An

[Hibernate] Another problem: jmx vs static initialization

2002-10-24 Thread Andrea Aime
is kept into memory and so it doesn't reconfigure! I would like to have a way to force reconfiguration of hibernate on redeploy... otherwise I have to restart the app server, which takes 20 seconds on my pc... How do you work around these

[Hibernate] Mass delete and insert performance problems

2002-10-24 Thread Andrea Aime
finally { try {s.close();} catch(Exception e) {e.printStackTrace();} } } Hibernate is running as a JMX service in JBoss 3.0.2, the db is SAPDB, I'm using container managed transactions and stateless session bean, platform is windows 2000 professional... Best regads Andrea Ai

Re: [Hibernate] Long transactions, object update and many-to-one...

2002-10-10 Thread Andrea Aime
Gavin King wrote: An even better (and much easier to implement) approach might be to simply skip the nullification if the identifier of the transient instance indicates that it already exists on the database. Yep, it would be faster... Thats easy to implement. You wanna take a stab at it Andre

Re: [Hibernate] Long transactions, object update and many-to-one...

2002-10-10 Thread Andrea Aime
gards Andrea Aime --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/lis

[Hibernate] Long transactions, object update and many-to-one...

2002-10-10 Thread Andrea Aime
null, and in that case load this object without the need of user's support? Of course this requires that the referenced entity has the "unsave-value" property set... What do you think? Best regards Andrea Aime --- This

Re: [Hibernate] Postgres NUMERIC and other problems

2002-09-30 Thread Andrea Aime
thout precision and scale specification he is asking for a PostgreSQL specific feature, so it would be reasonable to use the sql-type directly. If you agree I can have a look at the implementation... Best regards Andrea Aime --- This sf.net email

[Hibernate] Half baked idea about improved code generation

2002-09-29 Thread Andrea Aime
hink? Best regards Andrea Aime --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge