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

Terrible performance: lack of spatial indexing and RAM? #696

Open
bill-myers opened this issue Jul 21, 2023 · 1 comment
Open

Terrible performance: lack of spatial indexing and RAM? #696

bill-myers opened this issue Jul 21, 2023 · 1 comment
Labels

Comments

@bill-myers
Copy link

bill-myers commented Jul 21, 2023

It looks like the Overpass system performs absolutely terribly for any nontrivial query, and seems completely incapable of returning results in reasonable time for relatively straightforward queries like "find all X worldwide which are within A distance of an Y and B distance of a Z (where X, Y and Z are queries that give closed way areas)".

It looks like that the project doesn't implement any sort of spatial index like an r-tree or kd-tree (or if it does it's done poorly), which would make it unsuitable for anything beyond trivial queries.

Also it seems that public instances run on SSDs, while for proper performance they should have enough RAM to hold the whole data set in RAM, since it looks like 256-1024GB of RAM are enough for that.

@mmd-osm
Copy link
Contributor

mmd-osm commented Jul 22, 2023

As a first step, you should probably post a real query to reproduce the issue. Some verbose description of what you're trying to do is of limited use only.

And no, the database wouldn't fit in main memory, OSM is simply too large for that. Even 1TB will not suffice (assuming no compression). The compressed version already takes up > 600GB. Very likely disk access isn't the issue here anyway, so we can simply ignore this point.

@drolbr drolbr added the invalid label Jul 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants