Skip to content

Conversation

@lonvia
Copy link
Member

@lonvia lonvia commented Sep 2, 2025

The number of parallel DB connections that a single API object can handle is determined by the amount of time the query spends in Python. A single API object is still single-threaded and uses only one CPU for executing the Python part.

The original value of 10 threads is far too optimistic about how fast Python is. Reduce to a value of 5, which worked out okay in production.

@lonvia lonvia merged commit 0f324c8 into osm-search:master Sep 3, 2025
8 checks passed
@lonvia lonvia deleted the decrease-default-pool-size branch September 3, 2025 06:53
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.

1 participant