Skip to content

Commit 5d4c8b0

Browse files
wu-huibhparijat
authored andcommitted
Fix index backfilling frequency. (#6585)
* Fix index backfilling frequency. * Add changeset * Delete happy-forks-greet.md
1 parent c499232 commit 5d4c8b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/firestore/src/local/index_backfiller.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ import { isIndexedDbTransactionError } from './simple_db';
3535
const LOG_TAG = 'IndexBackiller';
3636

3737
/** How long we wait to try running index backfill after SDK initialization. */
38-
const INITIAL_BACKFILL_DELAY_MS = 15;
38+
const INITIAL_BACKFILL_DELAY_MS = 15 * 1000;
3939

4040
/** Minimum amount of time between backfill checks, after the first one. */
41-
const REGULAR_BACKFILL_DELAY_MS = 1;
41+
const REGULAR_BACKFILL_DELAY_MS = 60 * 1000;
4242

4343
/** The maximum number of documents to process each time backfill() is called. */
4444
const MAX_DOCUMENTS_TO_PROCESS = 50;

0 commit comments

Comments
 (0)