Use random cursors in the update operation of the cppsuite

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • StorEng - Defined Pipeline, Storage Engines - 2022-10-31
    • 3

      Summary
      In the update_operation of the database_operation class, after selecting a random collection to update, we generate a random key using the get_key_count function on the collection. Instead, we could use a random cursor, find a random record and retrieve the key. This is already done in the remove_operation of the same class.

      Motivation

      • Is this issue urgent?
        No

      Acceptance Criteria (Definition of Done)

      • Testing
        Use random cursors instead of relying on get_key_count
      • Documentation update
        There should be none.

      Suggested Solution
      See the remove_operation implementation.

              Assignee:
              [DO NOT USE] Backlog - Storage Engines Team
              Reporter:
              Etienne Petrel
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: