Add an index specifically for improving thread count perf.

This commit is contained in:
Greyson Parrelli
2023-09-01 11:45:36 -04:00
committed by Nicholas Tinsley
parent bc1c8032c1
commit 494b2c6786
6 changed files with 42 additions and 37 deletions

View File

@@ -138,9 +138,10 @@ public class ApplicationMigrations {
static final int IDENTITY_FIX = 94;
static final int COPY_USERNAME_TO_SIGNAL_STORE = 95;
static final int RECHECK_PAYMENTS = 96;
static final int THREAD_COUNT_DB_MIGRATION = 97;
}
public static final int CURRENT_VERSION = 96;
public static final int CURRENT_VERSION = 97;
/**
* This *must* be called after the {@link JobManager} has been instantiated, but *before* the call
@@ -627,6 +628,10 @@ public class ApplicationMigrations {
jobs.put(Version.RECHECK_PAYMENTS, new RecheckPaymentsMigrationJob());
}
if (lastSeenVersion < Version.THREAD_COUNT_DB_MIGRATION) {
jobs.put(Version.THREAD_COUNT_DB_MIGRATION, new DatabaseMigrationJob());
}
return jobs;
}