Skip to content

Commit f4c0574

Browse files
committed
change the heuristic to match the latest design
1 parent c10ef1c commit f4c0574

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

firebase-firestore/src/test/java/com/google/firebase/firestore/local/AutoIndexingExperiment.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,16 +224,16 @@ private void createMutationForCollection(String basePath, int totalSetCount) {
224224
@Test
225225
public void testCombinesIndexedWithNonIndexedResults() throws Exception {
226226
// Every set contains 10 documents
227-
final int numOfSet = 1000;
227+
final int numOfSet = 10;
228228
// could overflow. Currently it is safe when numOfSet set to 1000 and running on macbook M1
229229
long totalBeforeIndex = 0;
230230
long totalAfterIndex = 0;
231231
long totalDocumentCount = 0;
232232
long totalResultCount = 0;
233233

234234
// Temperate heuristic, gets when setting numOfSet to 1000.
235-
double without = 3.7;
236-
double with = 4.9;
235+
double without = 1;
236+
double with = 3;
237237

238238
for (int totalSetCount = 1; totalSetCount <= numOfSet; totalSetCount *= 10) {
239239
// portion stands for the percentage of documents matching query

0 commit comments

Comments
 (0)