aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAlexander NeonXP Kiryukhin <a.kiryukhin@mail.ru>2019-05-28 01:34:40 +0300
committerAlexander NeonXP Kiryukhin <a.kiryukhin@mail.ru>2019-05-28 01:34:40 +0300
commit2afa4e76fb01235fcaa2162cb3b29240df091369 (patch)
treeb420cab453fde75dedbb9dd618476d51fe77c6c3 /README.md
parenta523b636795c25a31a76737b4ccf95f7485d8ec5 (diff)
Speed up import
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/README.md b/README.md
index c52dd76..df0d88d 100644
--- a/README.md
+++ b/README.md
@@ -8,11 +8,14 @@ Simple loader from osm dump file to mongodb. Based on https://github.com/paulmac
## Usage
-`./osm2go -osmfile PATH_TO_OSM_FILE [-dbconnection mongodb://localhost:27017] [-dbname osm]`
+`./osm2go -osmfile PATH_TO_OSM_FILE [-dbconnection mongodb://localhost:27017] [-dbname osm] [-initial=true] [-concurrency=16] [-block=1000]`
* `osmfile` required, path to *.osm or *.osm.pbf file
* `dbconnection` optional, mongodb connection string (default: `mongodb://localhost:27017`)
* `dbname` optional, mongodb database name (default: `osm`)
+* `initial` optional, use insert instead upsert. Faster, but not check if item exists (default: `false`)
+* `concurrency` optional, parallel read processes (default, `16`)
+* `block` optional, block size to bulk write (default: `1000`)
## Example