You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sedona.apache.org by "james-willis (via GitHub)" <gi...@apache.org> on 2026/09/16 19:03:50 UTC

[PR] fix(spatial-join): account for KNN geometry cache backbone in memory estimate [sedona-db]

james-willis opened a new pull request, #1315:
URL: https://github.com/apache/sedona-db/pull/1315

   `KnnComponents` eagerly allocates one `OnceCell<Geometry>` slot per indexed geometry, but the memory estimate counted only the WKB byte total and omitted this backbone. This adds the backbone term (`cache_size * size_of::<OnceCell<Geometry>>`) to both the instance estimate and the statistics-based estimate that feeds the spatial-join memory reservation.
   
   The slot count is known up front and each slot reserves inline space for the decoded geometry, so this term is exact. The lazily-decoded coordinate buffers are a separate under-count, out of scope here.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(spatial-join): account for KNN geometry cache backbone in memory estimate [sedona-db]

Posted by "james-willis (via GitHub)" <gi...@apache.org>.
james-willis merged PR #1315:
URL: https://github.com/apache/sedona-db/pull/1315


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org