Add indexes on Task and CaldavTask

renovate/fastlane-2.x-lockfile
Alex Baker 1 day ago
parent aa7c9673c8
commit a9fc7bca4b

File diff suppressed because it is too large Load Diff

@ -61,8 +61,9 @@ import org.tasks.data.entity.UserActivity
autoMigrations = [
AutoMigration(from = 83, to = 84, spec = AutoMigrate83to84::class),
AutoMigration(from = 88, to = 89, spec = AutoMigrate88to89::class),
AutoMigration(from = 90, to = 91),
],
version = 90
version = 91
)
abstract class Database : RoomDatabase() {
abstract fun notificationDao(): NotificationDao

@ -28,6 +28,7 @@ import org.tasks.data.entity.Task.Companion.NO_ID
Index(value = ["cd_remote_id"]),
Index(value = ["cd_calendar", "cd_remote_id"]),
Index(value = ["cd_calendar", "cd_remote_parent"]),
Index(value = ["cd_calendar", "cd_object"]),
]
)
data class CaldavTask(

@ -30,7 +30,9 @@ const val FORCE_MICROSOFT_SYNC = "force_microsoft_sync"
tableName = Task.TABLE_NAME,
indices = [
Index(name = "t_rid", value = ["remoteId"], unique = true),
Index(name = "active_and_visible", value = ["completed", "deleted", "hideUntil"])])
Index(name = "active_and_visible", value = ["completed", "deleted", "hideUntil"]),
Index(value = ["parent"]),
])
data class Task @OptIn(ExperimentalSerializationApi::class) constructor(
@PrimaryKey(autoGenerate = true)
@ColumnInfo(name = "_id")

Loading…
Cancel
Save