mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 02:10:44 +01:00
Add database indices to improve message delete performance.
This commit is contained in:
@@ -126,9 +126,10 @@ public class ApplicationMigrations {
|
||||
static final int REBUILD_MESSAGE_FTS_INDEX_3 = 81;
|
||||
static final int TO_FROM_RECIPIENTS = 82;
|
||||
static final int REBUILD_MESSAGE_FTS_INDEX_4 = 83;
|
||||
static final int INDEX_DATABASE_MIGRATION = 84;
|
||||
}
|
||||
|
||||
public static final int CURRENT_VERSION = 83;
|
||||
public static final int CURRENT_VERSION = 84;
|
||||
|
||||
/**
|
||||
* This *must* be called after the {@link JobManager} has been instantiated, but *before* the call
|
||||
@@ -562,6 +563,10 @@ public class ApplicationMigrations {
|
||||
jobs.put(Version.REBUILD_MESSAGE_FTS_INDEX_4, new RebuildMessageSearchIndexMigrationJob());
|
||||
}
|
||||
|
||||
if (lastSeenVersion < Version.INDEX_DATABASE_MIGRATION) {
|
||||
jobs.put(Version.INDEX_DATABASE_MIGRATION, new DatabaseMigrationJob());
|
||||
}
|
||||
|
||||
return jobs;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user