Skip to content

Commit 320e58c

Browse files
authored
Firestore: Set DEFAULT_RELATIVE_INDEX_READ_COST_PER_DOCUMENT to 8 in query_engine.ts (#7608)
1 parent fbd8e0e commit 320e58c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/firestore/src/local/query_engine.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ const DEFAULT_INDEX_AUTO_CREATION_MIN_COLLECTION_SIZE = 100;
5555
* (([index, docKey] + [docKey, docContent]) per document in the result set)
5656
* / ([docKey, docContent] per documents in full collection scan) coming from
5757
* experiment [enter PR experiment URL here].
58-
* TODO: Enter PR experiment URL above.
58+
* TODO(b/299284287) Choose a value appropriate for the browser/OS combination,
59+
* as determined by more data points from running the experiment.
5960
*/
60-
const DEFAULT_RELATIVE_INDEX_READ_COST_PER_DOCUMENT = 2;
61+
const DEFAULT_RELATIVE_INDEX_READ_COST_PER_DOCUMENT = 8;
6162

6263
/**
6364
* The Firestore query engine.

0 commit comments

Comments
 (0)