Import large Legend files
Currently this is not possible unless you have enough RAM to do so.
Currently it loads the whole legend file into memory and then starts storing it into the database. So it will most likely fail because it runs out of memory. I have taken a look at this in the past but was not my priority at the moment because I then have to parse the file multiple times and just do part of it at a time.
There is a workaround for this and that is to split the file up into multiple files. And import them 1 at a time.
Note that you have to do this with the Postgres build because the SQLite version does not support overwriting of already existing worlds.
Do create more
-legends.xml files and store only
regions in the first one (so that the filesize is about 2GB or whatever works on your systems (depends on amount of RAM you have). Then import the file under world id 1 for example.
Then wait for it to finish. Change the main
legends.xml file to the next part and run it again. Do this a few times until everything is imported.
Import the world on a machine (could be a server) that has enough RAM to not run out, It should work without a problem you can then export the database and import it into your local machine. As the
start command does not care how large the database is.
Yes this will be added in the future somewhere but currently not a priority.