mbtiler: use Wall mode and create index on tiles#29
Open
DoFabien wants to merge 3 commits intomapbox:masterfrom
Open
mbtiler: use Wall mode and create index on tiles#29DoFabien wants to merge 3 commits intomapbox:masterfrom
DoFabien wants to merge 3 commits intomapbox:masterfrom
Conversation
Wall mode speedup by about 10 the speed of writing in the database Create index on tiles for efficient access to this table
Contributor
|
Whoah that's amazing. |
Author
|
I lied. But with the commit correctly placed, after the inserts, it took 76s about 20 times faster PS: The input/output data are on my big and slow external HDD (5200 t/m) |
Otherwise, the file .mbtiles-wal becomes huge (same size as the final file). The result is the need to have twice the size of the final Mbtiles on the hard drive
|
Any update? |
Contributor
|
I'd suggest to create the index after the tiles have been created. There does not seem to be any use of it during tile creation and it would have to be updated many times during that process. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Hello,
Great job!
But writing the tiles to the database is so slow ...
You can increase by 10 just by using WALL MODE of sqlite
Create index on tiles for efficient access to this table