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

Avoid a multimap when the index is unique #2044

Merged
merged 2 commits into from
Dec 9, 2024
Merged

Conversation

Centril
Copy link
Contributor

@Centril Centril commented Dec 9, 2024

Description of Changes

Fixes #2035.

Also fixes a bug in create_index where it doesn't error when a unique index is added where the existing rows would violate the constraint.

Also reduces the work done in Table::clone_structure.

@Centril Centril requested a review from coolreader18 December 9, 2024 18:43
@Centril Centril force-pushed the centril/unique-no-multimap branch from 54c587c to fe977aa Compare December 9, 2024 21:17
@Centril Centril added this pull request to the merge queue Dec 9, 2024
Merged via the queue into master with commit e103971 Dec 9, 2024
8 checks passed
@cloutiertyler
Copy link
Contributor

cloutiertyler commented Dec 9, 2024

What's the benchmark diff from this out of curiosity? I saw you updated the benches.

@Centril Centril deleted the centril/unique-no-multimap branch December 10, 2024 18:37
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.

perf: don't use multimap for indices with a unique constraint
3 participants