Fix #778: Defragment embedded HSQLDB database more frequently
parent
77ca475fbe
commit
cff97ea9be
@ -0,0 +1,6 @@ |
||||
<databaseChangeLog |
||||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog" |
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd"> |
||||
<include file="setup-hsqldb-checkpoint-defrag.xml" relativeToChangelogFile="true"/> |
||||
</databaseChangeLog> |
@ -0,0 +1,23 @@ |
||||
<databaseChangeLog |
||||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog" |
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd"> |
||||
<changeSet id="setup-hsqldb-checkpoint-defrag" author="fxthomas"> |
||||
|
||||
<preConditions onFail="MARK_RAN"> |
||||
<dbms type="hsqldb" /> |
||||
</preConditions> |
||||
|
||||
<sql> |
||||
SET LOGSIZE 64; |
||||
<comment>Automatically run a CHECKPOINT when the log is above 64MB.</comment> |
||||
</sql> |
||||
<sql> |
||||
SET CHECKPOINT DEFRAG 32; |
||||
<comment>Automatically defragment on CHECKPOINT when the wasted space is above 32MB.</comment> |
||||
</sql> |
||||
|
||||
<rollback></rollback> |
||||
|
||||
</changeSet> |
||||
</databaseChangeLog> |
Loading…
Reference in new issue