Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

tpcc: use random int63 for history.rowid column#155

Merged
petermattis merged 1 commit intomasterfrom
pmattis/history
Mar 5, 2018
Merged

tpcc: use random int63 for history.rowid column#155
petermattis merged 1 commit intomasterfrom
pmattis/history

Conversation

@petermattis
Copy link
Copy Markdown
Contributor

The history table does not have a primary key specified so it is given a
hidden rowid column that has a default value of
unique_rowid(). Unfortunately, that causes hot spots as the generated
values are timestamp ordered. Manually specify the rowid column as a
random number.

See #154

The history table does not have a primary key specified so it is given a
hidden `rowid` column that has a default value of
`unique_rowid()`. Unfortunately, that causes hot spots as the generated
values are timestamp ordered. Manually specify the `rowid` column as a
random number.

See #154
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@petermattis petermattis requested review from jordanlewis and nvb March 4, 2018 21:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants