Skip to content

Commit

Permalink
Fix index backfilling frequency. (#6585)
Browse files Browse the repository at this point in the history
* Fix index backfilling frequency.

* Add changeset

* Delete happy-forks-greet.md
  • Loading branch information
wu-hui authored and bhparijat committed Sep 23, 2022
1 parent c499232 commit 5d4c8b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/firestore/src/local/index_backfiller.ts
Expand Up @@ -35,10 +35,10 @@ import { isIndexedDbTransactionError } from './simple_db';
const LOG_TAG = 'IndexBackiller';

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

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

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

0 comments on commit 5d4c8b0

Please sign in to comment.