Kontinuation opened a new pull request, #608:
URL: https://github.com/apache/sedona-db/pull/608
## Summary
- Add `memory_limit`, `temp_dir`, `memory_pool_type`, and
`unspillable_reserve_ratio` parameters to `SedonaContext.__init__()` and the
`connect()` function, allowing Python users to configure memory pools
(greedy/fair) and disk spill settings for out-of-core workloads.
- Initialize `env_logger` in the Python module for debugging support.
- Minor cleanup: switch `log` dependency in `sedona-geo-generic-alg` to
workspace version.
## Motivation
The memory pool and runtime environment configuration added in #599 was only
accessible via `sedona-cli`. This PR exposes the same configuration through the
Python bindings so that Python users can control memory limits and spill
behavior when running out-of-core spatial joins.
## Example usage
```python
from sedonadb import connect
ctx = connect(
memory_limit=4 * 1024 * 1024 * 1024, # 4 GB
temp_dir="/tmp/sedona-spill",
memory_pool_type="fair",
unspillable_reserve_ratio=0.2,
)
```
--
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]