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

Do not update tiles with same hash #1559

Closed
wants to merge 1 commit into from

Conversation

pka
Copy link
Contributor

@pka pka commented Oct 30, 2024

No description provided.

@@ -216,7 +216,7 @@ impl Mbtiles {
),
Some(format!(
"
INSERT {on_duplicate} INTO images (tile_id, tile_data)
INSERT OR IGNORE INTO images (tile_id, tile_data)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is missing a lot of context. Describing the changes you want/need to make goes a long way..

  • What was your original issue?
    Could you attach a testcase to avoid regressions?
  • Why does changing just this insert statement to CopyDuplicateMode::Ignore solve this? Why should this behave differently for images?

@pka pka closed this Oct 30, 2024
@nyurik
Copy link
Member

nyurik commented Oct 30, 2024

@pka hi, i'm not sure what you tried to do here - in the copying, it is already possible to set how override will be done with a CLI flag

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

Successfully merging this pull request may close these issues.

3 participants