mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 08:39:22 +01:00
Improve the performance of the migration by ~4x.
This commit is contained in:
@@ -44,6 +44,7 @@ object SqlUtil {
|
||||
return tables
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun getNextAutoIncrementId(db: SupportSQLiteDatabase, table: String): Long {
|
||||
db.query("SELECT * FROM sqlite_sequence WHERE name = ?", arrayOf(table)).use { cursor ->
|
||||
if (cursor.moveToFirst()) {
|
||||
|
||||
Reference in New Issue
Block a user