Subject | Re: Firebird on Windows |
---|---|
Author | sbnspindler |
Post date | 2004-03-23T13:09:23Z |
--- In firebird-support@yahoogroups.com, "Alan McDonald" <alan@m...>
wrote:
commit retaining though i always make a "hard" commit.
What else can I make wrong, because of the increasing time with each
insert ? Any ideas ?
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.Back again ! I asked in the java group, and jaybird doesn't support
> Alan
commit retaining though i always make a "hard" commit.
What else can I make wrong, because of the increasing time with each
insert ? Any ideas ?