NaN and Inf results in search of all nodes in rtree
Author: krkeshavCreated Dec 29, 2025Updated Jan 6, 2026
Describe the bug NaN or Inf causes rtree to search all nodes which causes performance issues
To Reproduce
Eg. intersects namespace objects circle NaN NaN 1
Try with huge dataset
Expected behavior I expected it to throw an error
Logs If applicable, provide logs, panics, system messages to help explain your problem.
Operating System (please complete the following information):
- OS: [e.g. Linux / Mac OS]
- CPU: [e.g. amd64 / arm64 / Apple Silicon / Intel]
- Version: All versions including latest
- Container: k8s/docker/local
Additional context Depending on CPU provided and size of dataset, the queries can range from few seconds to almost 1 minute.
Source: tidwall/tile38