-
Type: Improvement
-
Resolution: Unresolved
-
Priority: 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.
- related to
-
WT-9520 Randomise read logic in the cppsuite
- Open