Skip to content

Commit f8b7174

Browse files
Persist schema version 7 (#8850)
1 parent 121f56e commit f8b7174

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Firestore/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
- [added] Added support for Firebase AppCheck.
33
- [fixed] Fix a crash if `[FIRTransaction getDocument]` was called after
44
`[FIRFirestore terminateWithCompletion]` (#8760).
5+
- [fixed] Fixed a performance issue due to repeated schema migrations
6+
at app startup (#8791).
57

68
# v8.6.0
79
- [changed] Internal refactor to improve serialization performance.

Firestore/core/src/local/leveldb_migrations.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ void RewriteTargetsCanonicalIds(leveldb::DB* db,
375375
transaction.Put(new_key, empty_buffer);
376376
}
377377

378+
SaveVersion(7, &transaction);
378379
transaction.Commit();
379380
}
380381

0 commit comments

Comments
 (0)