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

Add Shortcut for spatial.intersects procedure #412

Merged

Conversation

Andy2003
Copy link
Collaborator

Implemented a shortcut for the spatial.intersects procedure to improve performance.

The update bypasses the full geometry intersection check when the requested polygon is a rectangle (without hole) and the target geometry is entirely contained within the search window.
This optimization reduces unnecessary computations, enhancing the efficiency of spatial intersection operations.

Test-Coverage:

No new test was added, since the relevant code was already covered by existing tests

 Implemented a shortcut for the `spatial.intersects` procedure to improve performance.
 The update bypasses the full geometry intersection check when the requested polygon is a rectangle (without hole) and the target geometry is entirely contained within the search window.
This optimization reduces unnecessary computations, enhancing the efficiency of spatial intersection operations.
@Andy2003 Andy2003 requested a review from jexp May 30, 2024 13:30
@Andy2003 Andy2003 merged commit 68a0859 into neo4j-contrib:master May 31, 2024
1 check passed
@Andy2003 Andy2003 deleted the feature/shortcut_for_intersect branch May 31, 2024 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants