Subject | Re: Problem with SELECT Statement |
---|---|
Author | Roman Rokytskyy |
Post date | 2003-09-19T10:15:36Z |
> 1) For a "select" statement it seems that commitYes. If transaction isolation level is not read committed, JayBird has
> and rollback don't have any relevance since a select
> statement does not change the database in any way.
> Have I missed something here?
to commit after each statement in order to see changes made by other
transactions. Also there's a concept of selectable stored procedure,
which can do inserts, updates and deletes even somebody executed
SELECT statement.
> Likewise there should be no difference betweenBehavior of the driver in auto-commit is described in JDBC specification.
> doing a select with autocommit true or false.
> 3) One of the advantages of a client / serverAuto-commit mode is not the best one for client-server setup.
> setup is that the client does not have to read all of
> the data which reduces the traffic on the network.
> True here you requested the select data, but how often
> does the user then decide he does not need all of that
> data.
According to the specification, result set will be automatically
closed if you execute any other statement over the same connection. In
non-autocommit mode everyting is ok.
> 4) Interbase is a lot better at holding all ofAs I said, current implementation is not the best one. Volunteers welcome.
> this data than Java is. Jaybird being in Java, shares
> (or takes away) the same memory the Java program is
> using.
> We have adjusted our program to do all selectsNo, you can close statement and then commit. Also switching
> with autocommit = false. Is it important to commit
> before closing the statements?
auto-commit mode will cause implicit commit.
> Or will closing theIt will.
> statements free all the resources in Jaybird and
> Interbase?
Roman