Subject | Re: Firebird on Windows |
---|---|
Author | sbnspindler |
Post date | 2004-03-23T12:37:17Z |
--- In firebird-support@yahoogroups.com, "Alan McDonald" <alan@m...>
wrote:
Thank you for your time !
wrote:
> > I don't know if the transaction type you mean is the same as thestatement.
> > transaction isolation level I can set in java.
> > I use the default one that is "transaction read committed".
> >
> > By default a Connection object is in auto-commit mode, which means
> > that it automatically commits changes after executing each
> > If auto-commit mode has been disabled, the method commit must beinserts.
> > called explicitly in order to commit changes; otherwise, database
> > changes will not be saved.
> >
> > I set autocommit off and I make a explicit commit after about 1000
> > inserts with connection.commit()-method.
> >
>
> you made me look back on some old source I had - you're quite right,
> connection.SetAutoCommit(False);
> then you use
> connection.commit();
> That's what should work fine for me but I never used this for mass
> Maybe the java group is better to answer this than me.still a
> I have a sneeky suspicion that this type of connection.commit() is
> commitretaining in the transaction context and not a hard commitand that
> what you need to do is use explicit transactions so that you areusing
> transaction.commit() and not connection.commit(). I might be wrong.I'll ask in the java group .
> Alan
Thank you for your time !