diff --git a/airsonic-main/src/main/resources/liquibase/10.2/setup-hsqldb-checkpoint-defrag.xml b/airsonic-main/src/main/resources/liquibase/10.2/setup-hsqldb-checkpoint-defrag.xml index a028b8ce..8377af76 100644 --- a/airsonic-main/src/main/resources/liquibase/10.2/setup-hsqldb-checkpoint-defrag.xml +++ b/airsonic-main/src/main/resources/liquibase/10.2/setup-hsqldb-checkpoint-defrag.xml @@ -2,12 +2,13 @@ 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"> - - - 7:890e52428bbc2a792fea1e026a4b7610 + - + + + + @@ -26,4 +27,31 @@ + + + 7:890e52428bbc2a792fea1e026a4b7610 + + + + + + + + + + CHECKPOINT DEFRAG; + Defragment the database before enabling auto defrag, so that the biggest part of the work is done during migration. + + + SET LOGSIZE 64; + Automatically run a CHECKPOINT when the log is above 64MB. + + + SET CHECKPOINT DEFRAG 32; + Sets the threshold in percentage for performing a DEFRAG during a checkpoint. + + + + +