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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
22 matches
Mail list logo