Disable ORDER BY way "clustering" #102
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Testing indicates that a modified pinning number is no better with
ORDER BY way than by clustered/ordered on osm_id. As the table at
this point are approximately ordered by ID, skip ordering completely.
The modified pinning number is the pinning number, but instead of a
point, an area equivalent to a rendering meta-tile.
For high zooms and a true pinning number ordering by ID is effective,
probably because typically the ways right around a point were created
at about the same time.
For low zooms, a clustering on gist (way) may be desirable, but this
is something the user will have to consider, particularly as it takes
a decent amount of time to do this clustering, and significantly
increases the disk space requirements during the import process.
Benchmarks show the pinning number is within 10% for both a full planet and an extract and the ID-ordered z12 modified pinning number is 50% of the
ORDER BY wayz12 modified pinning number for the line table and 90% for the polygon table.@apmon, I know there's some conflicts between this and the threading branch, but this also completely eliminates a section you had to change, making the merge simpler.