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

geo/geomfn: use GEOSRelatePattern for ST_ContainsProperly #49759

Merged
merged 1 commit into from
Jun 2, 2020

Conversation

otan
Copy link
Contributor

@otan otan commented Jun 1, 2020

GEOSRelatePattern seems to avoid the checks for wildcards, making
ST_ContainsProperly faster.

Release note: None

@otan otan requested review from sumeerbhola and a team June 1, 2020 16:52
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@otan otan force-pushed the contains_properly_faster branch from 41557d8 to 4aa4b43 Compare June 1, 2020 17:10
Copy link
Collaborator

@sumeerbhola sumeerbhola left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 6 of 6 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @otan)


pkg/geo/geomfn/de9im.go, line 28 at r1 (raw file):

}

// RelatePattern returns the whether the DE-9IM relation between A and B matches.

... returns whether the ... matches the pattern.

Copy link
Contributor Author

@otan otan left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @sumeerbhola)


pkg/geo/geomfn/de9im.go, line 28 at r1 (raw file):

Previously, sumeerbhola wrote…

... returns whether the ... matches the pattern.

Done.

@otan otan force-pushed the contains_properly_faster branch from 4aa4b43 to fc9de31 Compare June 2, 2020 01:34
GEOSRelatePattern seems to avoid the checks for wildcards, making
ST_ContainsProperly faster.

Release note: None
@otan otan force-pushed the contains_properly_faster branch from fc9de31 to 26d5952 Compare June 2, 2020 01:35
@otan
Copy link
Contributor Author

otan commented Jun 2, 2020

bors r=sumeerbhola

@craig
Copy link
Contributor

craig bot commented Jun 2, 2020

Build succeeded

@craig craig bot merged commit 9d1efbd into cockroachdb:master Jun 2, 2020
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.

3 participants