Sybase Adaptive Server IQ 12.4.2 Administration And Performance Manual page 309

Table of Contents

Advertisement

Options in DBISQL
Committing a transaction writes data to disk
A
statement undoes all the changes made by the transaction.
ROLLBACK
A disconnection from a database causes an implicit rollback (the default)
or commit, depending on whether the DBISQL option
is set.
A statement with a side effect of an automatic commit is executed.
Database definition commands, such as
the side effect of an automatic commit. You can also use two DBISQL options
to cause a commit to occur automatically.
DBISQL provides two options that let you control when and how transactions
end:
If you set the option
commits your results following every successful statement, and
automatically performs a
The setting of the option
uncommitted changes when you exit DBISQL. If this option is set to
(the default), DBISQL does a
uncommitted changes with a
Adaptive Server IQ also supports Transact-SQL commands, such as
, for compatibility with Adaptive Server Enterprise. For further
transaction
information, see "Transact-SQL Compatibility" in the Adaptive Server
Anywhere User's Guide.
When you execute a write operation, Adaptive Server IQ does not immediately
write the data to disk. Instead, it writes it into a data cache, an area in memory
where it stores pages from the database while they are in use. Reading from and
writing to the cache reduces the number of number of times Adaptive Server
IQ must access the disk. It is an essential part of IQ's high performance.
Eventually, IQ must write dirty pages—that is, pages that have been updated—
to the disk. Adaptive Server IQ writes dirty pages to disk each time a
transaction commits. This approach is a major benefit to IQ users, because it
means that IQ does not need to log data insertions in the transaction log. By not
logging the very large insertions that are typical with IQ, users gain tremendous
savings in disk and performance cost.
CHAPTER 8
Transactions and Versioning
,
ALTER
CREATE
to
, DBISQL automatically
AUTO_COMMIT
ON
after each failed statement.
ROLLBACK
COMMIT_ON_EXIT
; otherwise it undoes your
COMMIT
statement.
ROLLBACK
COMMIT_ON_EXIT
, and
all have
DROP
controls what happens to
ON
begin
289

Advertisement

Table of Contents
loading

Table of Contents