From 54e444b03c9a1c05e958a2667c1bf3df921c9634 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Xavier=20Thomas?= Date: Fri, 8 Mar 2019 22:22:25 +0100 Subject: [PATCH] Make CHECKPOINT / DEFRAG syntax work for both HSQLDB 1 & 2 --- .../10.2/setup-hsqldb-checkpoint-defrag.xml | 36 ++++++++++++++++--- 1 file changed, 32 insertions(+), 4 deletions(-) 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. + + + + +