Skip to content

fixes issues when importing data from history#407

Open
GitTomahawk wants to merge 7 commits intoioBroker:masterfrom
GitTomahawk:master
Open

fixes issues when importing data from history#407
GitTomahawk wants to merge 7 commits intoioBroker:masterfrom
GitTomahawk:master

Conversation

@GitTomahawk
Copy link

fixes issues when importing data from history to sql:

  • use "insert ignore" and "update ignore" to prevent duplicate key issues
  • workaround multiline insert issue (allowing 1000 lines to be inserted at once)

use "insert ignore" to prevent duplicate key issues from dropping th whole query
This reverts commit aae44e9.
use INSERT IGNORE to prevent duplicate key issues
aded newline for multi-inserts
added IGNORE to Update
Increased maximum values per insert to prevent query split into multiple inserts (which caused errors)
@Apollon77
Copy link
Contributor

Hm ... yes this fixes the topic on mass insert ... but it could hide issues in normal operations because the queries are the same there ...

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.

2 participants

Comments