Skip to content

Commit

Permalink
Change HSQLDB repository log fsync() interval from 500ms to 5s
Browse files Browse the repository at this point in the history
  • Loading branch information
catbref committed Mar 24, 2020
1 parent 38394de commit 51e59f6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,11 @@ private static boolean databaseUpdating(Connection connection) throws SQLExcepti
stmt.execute("ALTER TABLE RewardShares ALTER COLUMN minter SET NOT NULL");
break;

case 68:
// Slow down log fsync() calls from every 500ms to reduce I/O load
stmt.execute("SET FILES WRITE DELAY 5"); // only fsync() every 5 seconds
break;

default:
// nothing to do
return false;
Expand Down

0 comments on commit 51e59f6

Please sign in to comment.