forked from Qortal/qortal
Reduce block search size in AT state trimmer to reduce load
This commit is contained in:
parent
a681f741dd
commit
a6a1f65d3e
@ -15,7 +15,7 @@ public class AtStatesTrimmer implements Runnable {
|
|||||||
|
|
||||||
private enum TrimMode { SEARCHING, TRIMMING }
|
private enum TrimMode { SEARCHING, TRIMMING }
|
||||||
private static final long TRIM_INTERVAL = 2 * 1000L; // ms
|
private static final long TRIM_INTERVAL = 2 * 1000L; // ms
|
||||||
private static final int TRIM_SEARCH_SIZE = 5000; // blocks
|
private static final int TRIM_SEARCH_SIZE = 2000; // blocks
|
||||||
private static final int TRIM_BATCH_SIZE = 200; // blocks
|
private static final int TRIM_BATCH_SIZE = 200; // blocks
|
||||||
private static final int TRIM_LIMIT = 4000; // rows
|
private static final int TRIM_LIMIT = 4000; // rows
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user