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 接口

 

setWriteAtEnd 方法

启用关闭过程中的索引持久性。

语法
ConfigPersistent ConfigPersistent.setWriteAtEnd(
  boolean write_at_end
) throws ULjException
参数
  • write_at_end   设置为 true 可将数据库保留在内存中,直到关闭。

注释

启用此选项可加快数据库操作的速度,但如果应用程序异常终止,对数据库的所有更改都将丢失。

只有在数据不重要或可以通过同步恢复时,才可以在启用索引持久性的情况下处理数据库。

返回值

设置了 WriteAtEnd 的 ConfigPersistent。