(WIP) Add option to import json dump file (#291)#293
(WIP) Add option to import json dump file (#291)#293hbruch wants to merge 1 commit intokomoot:masterfrom
Conversation
Signed-off-by: Holger Bruch <[email protected]>
| try { | ||
| this.reader = new BufferedReader(new FileReader(filename)); | ||
| } catch (FileNotFoundException e) { | ||
| log.error("Json dump file '%1' not found", filename); |
There was a problem hiding this comment.
Here we should throw a RuntimeException to avoid usage of this connector.
| } | ||
| } | ||
|
|
||
| public void setImporter(de.komoot.photon.Importer importer) { |
There was a problem hiding this comment.
shouldn't it be provided on construction and then importer and reader could be final?
Sanity of which form like empty content?
Which option do you prefer?
Can't judge about it. Both methods seems ok to me.
Yes, speed is not important for the first implementation IMO |
|
Have included some improvements of this in #438 |
This is a first attempt to provide a json dump import (see #291). Importing a json dump on my machine was about 10x faster than importing from nominatim.
However, there are some points I'd like to receive feedback on before doing a PR for merge: