Skip to content

29 feature request make the adress resolution more robuts#30

Merged
dgraf-gh merged 23 commits intomainfrom
29-feature-request-make-the-adress-resolution-more-robuts
Mar 30, 2026
Merged

29 feature request make the adress resolution more robuts#30
dgraf-gh merged 23 commits intomainfrom
29-feature-request-make-the-adress-resolution-more-robuts

Conversation

@dgraf-gh
Copy link
Copy Markdown
Contributor

No description provided.

dgraf-gh added 23 commits March 28, 2026 07:34
…aming approach

The key improvements in this commit are:

1. Removed upfront collection of all building IDs and records
2. Added a semaphore to limit in-flight batches
3. Stream through `poiIndexDb` with a `RocksIterator`
4. Process buildings in batches of 1000
5. Drain completed futures inline to keep memory bounded
6. Added atomic counters to track submitted and collected batches
7. Final drain of all remaining futures

This approach solves the memory issue with planet.pbf imports by:
- Never collecting all building records into memory
- Limiting concurrent processing
- Streaming through the database
- Draining futures continuously

The implementation follows the pattern used in other methods like `processAdministrativeBoundariesFromIndex`, ensuring consistent memory management and parallel processing.
@dgraf-gh dgraf-gh linked an issue Mar 30, 2026 that may be closed by this pull request
@dgraf-gh dgraf-gh merged commit 60fb7a3 into main Mar 30, 2026
1 check passed
@dgraf-gh dgraf-gh deleted the 29-feature-request-make-the-adress-resolution-more-robuts branch March 30, 2026 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Make the Adress resolution more robuts

1 participant