Skip to content

workload/ycsb: add zeropadding and insertorder #50544

@robert-s-lee

Description

@robert-s-lee

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

Metadata

Metadata

Assignees

Labels

C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions