Reduce usage of expensive function TransactionParticipant::checkStatementExecuted

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Cluster Scalability
    • Fully Compatible
    • Cluster Scalability 2024-08-19, Cluster Scalability 2024-09-02
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-91668 contains a description of why TransactionParticipant::checkStatementExecuted is expensive.

      In all existing usages of the function where we want to know if a specific statment has been executed but we don't need to retrieve the oplog entry associated to the statement we can replace the function with the more performant TransactionParticipant::checkStatementExecutedNoOplogEntryFetch.

      Currently, I see 3 candidates for this improvement:

              Assignee:
              Cheahuychou Mao
              Reporter:
              Tommaso Tocci
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: