-
Notifications
You must be signed in to change notification settings - Fork 4.1k
workload/ycsb: add zeropadding and insertorder #50544
Copy link
Copy link
Closed
Labels
C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
Description
Is your feature request related to a problem? Please describe.
opensource YCSB has the following two control that is useful for partitioning demos:
- zeropadding: for generating a record sequence compatible with string sort order by 0 padding the record number. Controls the number of 0s to use for padding. (default: 1)
For example for row 5, with zeropadding=1 you get ‘user5’ key and with zeropading=8 you get ‘user00000005’ key. In order to see its impact, zeropadding needs to be bigger than number of digits in the record number. - insertorder: should records be inserted in order by key (“ordered”), or in hashed order (“hashed”) (default: hashed)
This capability has been used in demos.
Describe the solution you'd like
add equivalent controls in workload ycsb
Describe alternatives you've considered
N/A
Additional context
N/A
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)