Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-9519

Use random cursors in the update operation of the cppsuite

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

      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:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            etienne.petrel@mongodb.com Etienne Petrel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: