Skip to content

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
@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