Skip to content

Commit 37c6f48

Browse files
authored
firestore_client.cc: increase the kRegularBackfillDelay from 1ms to 1000ms (#10170)
1 parent 96450bd commit 37c6f48

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Firestore/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Unreleased
22
- [added] Expose client side indexing feature with `FIRFirestore.setIndexConfigurationFromJSON` and
33
`FIRFirestore.setIndexConfigurationFromStream` (#10090).
4+
- [fixed] Fixed high CPU usage whenever Firestore was in use (#10168).
45

56
# 9.5.0
67
- [fixed] Fixed an intermittent crash if `ListenerRegistration::Remove()` was

Firestore/core/src/core/firestore_client.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ static const auto kRegularGCDelay = std::chrono::minutes(5);
113113
/** How long we wait to try running index backfill after SDK initialization. */
114114
static const auto kInitialBackfillDelay = std::chrono::milliseconds(15);
115115
/** Minimum amount of time between backfill checks, after the first one. */
116-
static const auto kRegularBackfillDelay = std::chrono::milliseconds(1);
116+
static const auto kRegularBackfillDelay = std::chrono::milliseconds(1000);
117117

118118
} // namespace
119119

0 commit comments

Comments
 (0)