Skip to content

threads option is overridden before passing it to number-processes arg #3218

Answered by mtmail
david-mart asked this question in Q&A
Discussion options

You must be logged in to vote

Quoting from #1408 (comment) (@lonvia is one of the maintainers of osm2psql and maintainer of Nominatim)

The number of processes was set to 1 intentionally. The osm2pgsql import itself is not multithreaded (or rather it is but not in any way that is influenced by this parameter). The only phase that is parallel is indexing. In this phase a high number of threads tends to be counter-productive. In my experience it is better to increase the maintenance memory to make creating a single index faster than increasing the number of parallel threads.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by david-mart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3217 on October 08, 2023 11:52.