mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 00:59:49 +01:00
Add an index specifically for improving thread count perf.
This commit is contained in:
committed by
Nicholas Tinsley
parent
bc1c8032c1
commit
494b2c6786
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user