Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » UltraLiteJ » UltraLiteJ 参考 » UltraLiteJ API 参考 » ConfigPersistent 接口

 

setAutocheckpoint 方法

设置自动检查点打开。

语法
ConfigPersistent ConfigPersistent.setAutocheckpoint(
  boolean auto_checkpoint
) throws ULjException
参数
  • auto_checkpoint   若值为 true,则打开自动检查点。

注释

在提交的更改操作应用到持久存储区中的持久性行时,数据库启用自动检查点功能。自动检查点处于活动状态时,每次提交时都会出现检查点;否则,将编写一份事务记录以记录更改,并且在应用程序调用 checkpoint 方法之前不更改持久行存储区。

禁用自动检查点可使更改和提交操作运行得更快,但如果存在大量没有检查点的事务,将使数据库启动变慢。

如果索引不是持久的或者启用了行限制,则 Autocheckpoint 始终为 true。

返回值

设置了自动检查点的 ConfigPersistent。