Skip to content

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 force-pushed the spatial_index_cost branch from d9ac49d to 8f57775 Compare December 8, 2023 12:08
@katzyn katzyn merged commit 1f1ad76 into h2database:master Dec 9, 2023
@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