Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql: change query ID type from string to Uint128 #17206

Merged
merged 1 commit into from
Jul 25, 2017

Conversation

petermattis
Copy link
Collaborator

Change the query ID type that is commonly used from string to
Uint128. This avoids the conversion to/from string in the common case,
reserving such conversion for when queries are listed and cancelled. The
Uint128 representation is smaller, faster to hash (for maps), faster to
compare and doesn't require an allocation.

Change the query ID type that is commonly used from string to
Uint128. This avoids the conversion to/from string in the common case,
reserving such conversion for when queries are listed and cancelled. The
Uint128 representation is smaller, faster to hash (for maps), faster to
compare and doesn't require an allocation.
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@petermattis petermattis requested a review from itsbilal July 25, 2017 12:27
@RaduBerinde
Copy link
Member

LGTM

Copy link
Contributor

@itsbilal itsbilal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@petermattis petermattis merged commit 3758800 into cockroachdb:master Jul 25, 2017
@petermattis petermattis deleted the pmattis/query-id-type branch July 25, 2017 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants