paleolimbot commented on code in PR #534:
URL: https://github.com/apache/sedona-db/pull/534#discussion_r2718583502


##########
rust/sedona-spatial-join/src/refine/tg.rs:
##########
@@ -267,6 +267,13 @@ impl IndexQueryResultRefiner for TgRefiner {
         }
     }
 
+    fn estimate_max_memory_usage(&self, build_stats: &GeoStatistics) -> usize {
+        // TODO: This is a rough estimate of the memory usage of the tg 
geometry and
+        // may not be accurate.
+        // https://github.com/apache/sedona-db/issues/281
+        build_stats.total_size_bytes().unwrap_or(0) as usize * 2

Review Comment:
   A tg geometry can be queried for its memory size. Is that relevant 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to