Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimization after first data download #105

Closed
stefanocudini opened this issue May 28, 2019 · 4 comments
Closed

optimization after first data download #105

stefanocudini opened this issue May 28, 2019 · 4 comments

Comments

@stefanocudini
Copy link

stefanocudini commented May 28, 2019

hi,

I was trying to optimize my pelias installation by the clone this repo.
I wanted to try to figure out which data in the directory /data are cached or are data reused in future imports, I need to understand how to optimize disk space

For example, I understand that whosonfirst data is a files geojson that is subsequently loaded into the sqlite database, so after executing the command
pelias download wof
I can free up the space used by the directory /data/whosonfirst/data/*
then after imports of other datasource.. pelias will use the sqlite databases for adminLookup right?

@orangejulius
Copy link
Member

Hi @stefanocudini,
I think it works the other way around. In the case where you're specifying importPlace to restrict to a subset of WOF data, the sqlite database is used to create a partial extract on the filesystem in the /data/whosonfirst/data directory.

In the future, we're probably going to move away from using that filesystem layout and go directly to sqlite, which you can try out today by setting "sqlite": true in pelias.json. That will save some disk space. We've also found that the high number of files and directories created by the WOF disk structure can itself create performance issues.

@stefanocudini
Copy link
Author

stefanocudini commented Sep 24, 2020

@orangejulius I updated the wos module to the latest version and it seems to me that now only sqlite files are present, can you confirm that sqlite is now the default: true?

good job!

@Joxit
Copy link
Member

Joxit commented Oct 6, 2020

Hi @stefanocudini, yes since pelias/whosonfirst#487 only sqlite is supported by pelias 😄

@stefanocudini
Copy link
Author

@Joxit my reference data before updating this plugin was more than 1 year ago

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants