forked from Qortal/qortal
Reduce DB space taken up by Blocks
This commit is contained in:
parent
7bb2f841ad
commit
cfb8f53849
@ -966,6 +966,15 @@ public class HSQLDBDatabaseUpdates {
|
|||||||
stmt.execute("CHECKPOINT DEFRAG");
|
stmt.execute("CHECKPOINT DEFRAG");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 70:
|
||||||
|
// Reduce space used for storing online account in Blocks
|
||||||
|
stmt.execute("ALTER TABLE Blocks ALTER COLUMN online_accounts BLOB(1M)");
|
||||||
|
stmt.execute("ALTER TABLE Blocks ALTER COLUMN online_accounts_signatures BLOB(1M)");
|
||||||
|
// Reclaim space
|
||||||
|
stmt.execute("CHECKPOINT");
|
||||||
|
stmt.execute("CHECKPOINT DEFRAG");
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// nothing to do
|
// nothing to do
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user