Skip to content

Commit 2bdbd44

Browse files
authored
Fix index backfilling frequency. (#6585)
* Fix index backfilling frequency. * Add changeset * Delete happy-forks-greet.md
1 parent 666c8ec commit 2bdbd44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/firestore/src/local/index_backfiller.ts

Lines changed: 2 additions & 2 deletions
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)