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

Fix incorrect implementation of MVSpatialIndex.getCost() #3941

Merged
merged 1 commit into from Dec 9, 2023

Conversation

katzyn
Copy link
Contributor

@katzyn katzyn commented Dec 8, 2023

Closes #3940.

Cost of spatial indexes was historically hard-coded as 2, but all other indexes use a complex formula. The same formula is now used for spatial indexes too. Its main multiplier can be suboptimal, but at least these indexes don't have a significantly underestimated cost any more.

@katzyn katzyn merged commit 1f1ad76 into h2database:master Dec 9, 2023
2 checks passed
@katzyn katzyn deleted the spatial_index_cost branch December 9, 2023 02:50
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.

Wrong estimation of a query execution cost with spatial index
1 participant