aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAlexander NeonXP Kiryukhin <a.kiryukhin@mail.ru>2019-05-30 14:05:08 +0300
committerAlexander NeonXP Kiryukhin <a.kiryukhin@mail.ru>2019-05-30 14:05:08 +0300
commit2f4b6e90597784a8a7c01027e0ff5c6b69634a96 (patch)
tree5d94daf9fc394425b03baf3915ffd03a0011e442 /README.md
parent97fd40df4d85d91f3414dc88aa96222c1d827b49 (diff)
Parallel write
Speedup
Diffstat (limited to 'README.md')
-rw-r--r--README.md20
1 files changed, 12 insertions, 8 deletions
diff --git a/README.md b/README.md
index df0d88d..72eb5c8 100644
--- a/README.md
+++ b/README.md
@@ -8,14 +8,18 @@ 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] [-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`)
+`./osm2go -osmfile=PATH_TO_OSM_FILE`
+
+All flags:
+
+* `-osmfile` (required) OSM file
+* `-initial` (default:false) Is initial import (uses insert, not upsert)
+* `-indexes` (default:false) Create indexes (needs only first time)
+* `-dbconnection` (default:"mongodb://localhost:27017") Mongo database name
+* `-dbname` (default:"map") Mongo database name
+* `-layers` (default:"nodes,ways,relations") Layers to import
+* `-block` (default:1000) Block size to bulk write
+* `-concurrency` (default:32) Concurrency read and write
## Example