HibernateServiceMBean declares: public void setProperty(String property, String value);
There should be some way to call that from hibernate-service.xml, but I'm not sure myself (not a JBoss user). It might be worth having a method that takes a list of name/value pairs, perhaps..... ----- Original Message ----- From: "Andrea Aime" <[EMAIL PROTECTED]> To: "Gavin King" <[EMAIL PROTECTED]> Sent: Thursday, October 24, 2002 8:52 PM Subject: Re: [Hibernate] Mass delete and insert performance problems > Gavin King wrote: > > >There are a couple of different issues in this: > > > >Hibernate does *not* (yet) do mass deletes. Usually we need to load an > >object up before we delete it, in case it has > >(1) Lifecycle callbacks > >(2) toplevel collections > >(3) cascading deletes > >(4) references to other deleted objects which need to be nullified before > >those objects are deleted > > > >I have always intended to someday implement a shortcut where objects that do > >not have (1), (2), (3), (4) can be deleted en masse. But thats not > >implemented yet. However, the API is there so that when it does get > >implemented, everyone's applications will suddenly get faster :) > > > >So, that explains why we need to load the objects. On the other hand, I'm > >not sure why the "useless updates" are occurring. Updates would need to be > >done if we needed to break any foreign key references to a PriceListItem > >before deleting it (or a PriceList before deleting *it*) but that doesn't > >seem to be the case in this case.... i'm confused about that. > > > >Im also not sure why the inserts are slow. They shouldn't be. Have you tried > >disabling batch updates hibernate.use_jdbc_batch=false? > > > > > > > How do you set this property using Hibernate as a jmx service? > In general, Hibernate supports a whole lot of properties, but I don't > know how to set them > in the hibernate-service.xml configuration file... > > Andrea ------------------------------------------------------- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
