Skip to content

Commit

Permalink
change the heuristic to match the latest design
Browse files Browse the repository at this point in the history
  • Loading branch information
cherylEnkidu committed Jul 25, 2023
1 parent c10ef1c commit f4c0574
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,16 +224,16 @@ private void createMutationForCollection(String basePath, int totalSetCount) {
@Test
public void testCombinesIndexedWithNonIndexedResults() throws Exception {
// Every set contains 10 documents
final int numOfSet = 1000;
final int numOfSet = 10;
// could overflow. Currently it is safe when numOfSet set to 1000 and running on macbook M1
long totalBeforeIndex = 0;
long totalAfterIndex = 0;
long totalDocumentCount = 0;
long totalResultCount = 0;

// Temperate heuristic, gets when setting numOfSet to 1000.
double without = 3.7;
double with = 4.9;
double without = 1;
double with = 3;

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

0 comments on commit f4c0574

Please sign in to comment.