mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-03-03 07:48:36 +00: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