简体   繁体   English

有没有办法在 HSQLDB 中禁用备份文件生成?

[英]Is there a way to disable backup file generation in HSQLDB?

So we are using HSQLdatabase as temporary storage to offload to disk for doing some calculation, we will be doing some bulk operations on merge statements(upsert/ insert or update)and size of database file in some cases reach as high as 70+gb.所以我们使用 HSQL 数据库作为临时存储来卸载到磁盘进行一些计算,我们将对合并语句(upsert/insert 或 update)进行一些批量操作,并且数据库文件的大小在某些情况下高达 70+gb。 Is there a way to disable.backup file creation in HSQL db?有没有办法在 HSQL 数据库中禁用 .backup 文件创建? we are fine with instances of DB corruption or node crash.我们可以接受数据库损坏或节点崩溃的情况。 Are there any properties that we can rely on for such use cases?对于此类用例,我们可以依赖任何属性吗? I referred to Bulk Inserts, Updates and Deletes from document and will set up my properties accordingly.我参考了文档中的批量插入、更新和删除,并将相应地设置我的属性。

The backup file generation is for persistence durability.备份文件生成是为了持久性。 When you don't need durability you can turn it off with this SQL statement:当您不需要耐用性时,您可以使用以下 SQL 语句将其关闭:

SET FILES LOG FALSE

Or the database connection property, hsqldb.log_data或者数据库连接属性, hsqldb.log_data

hsqldb.log_data=false

The data is still consistent with this setting but the changes will be lost in case of process termination.数据仍然与此设置一致,但更改将在进程终止的情况下丢失。

See the guide http://hsqldb.org/doc/2.0/guide/deployment-chapt.html#dec_bulk_operations参见指南http://hsqldb.org/doc/2.0/guide/deployment-chapt.html#dec_bulk_operations

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM