Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-78077

the log of getProductivityFormula function print inconsistency.

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • ALL
    • QE 2023-06-26

      {"t":\{"$date":"2023-06-14T20:44:38.165+08:00"}

      ,"s":"D2", "c":"QUERY", "id":20961, "ctx":"conn149","msg":"Score formula","attr":{"formula":"score(1.5002) = baseScore(1) + productivity_((1 advances)/(1 numReads) = 0.5)_ + tieBreakers(0 noFetchBonus + 0.0001 noSortBonus + 0.0001 noIxisectBonus = 0.00020000000000000001)"}}

      1/1=0.5,it is wrong。In fact, it is (0 + 1) / (1 + 1) = 0.5

       

      in calculateProductivity func, add 1 to both the numerator and denominator, So we need to keep the results consistent

            Assignee:
            david.storch@mongodb.com David Storch
            Reporter:
            1147952115@qq.com y yz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: