Title: Improve `skip_duplicates` · Issue #388 · datajoint/datajoint-python · GitHub
Open Graph Title: Improve `skip_duplicates` · Issue #388 · datajoint/datajoint-python
X Title: Improve `skip_duplicates` · Issue #388 · datajoint/datajoint-python
Description: This is perhaps a more elegant alternative solution to that in #382 / #383. MySQL does not provide a duplicate-specific ignore. But it does have ON DUPLICATE KEY UPDATE. It can be co-opted to play the role of the ON DUPLICATE KEY IGNORE....
Open Graph Description: This is perhaps a more elegant alternative solution to that in #382 / #383. MySQL does not provide a duplicate-specific ignore. But it does have ON DUPLICATE KEY UPDATE. It can be co-opted to play ...
X Description: This is perhaps a more elegant alternative solution to that in #382 / #383. MySQL does not provide a duplicate-specific ignore. But it does have ON DUPLICATE KEY UPDATE. It can be co-opted to play ...
Opengraph URL: https://github.com/datajoint/datajoint-python/issues/388
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve `skip_duplicates`","articleBody":"This is perhaps a more elegant alternative solution to that in #382 / #383. \r\n\r\nMySQL does not provide a duplicate-specific ignore. But it does have `ON DUPLICATE KEY UPDATE`. It can be co-opted to play the role of the `ON DUPLICATE KEY IGNORE`.\r\n\r\nI propose to replace the logic implemented in #383 by appending `ON DUPLICATE KEY UPDATE id1 = id1` where `id1` is the first attribute of the primary key. This leaves the duplicate values unchanged and quietly ignores them while inserting all the good entries.\r\n\r\n","author":{"url":"https://github.com/dimitri-yatsenko","@type":"Person","name":"dimitri-yatsenko"},"datePublished":"2017-11-01T17:32:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/388/datajoint-python/issues/388"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1cc41043-e85f-dc72-e47b-3821fae4f421 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A060:110179:F684C1:14F7C1B:6A4D61C8 |
| html-safe-nonce | 4db5fd36318e16d0555414dd27ef7d9630edae957ad580a30eeb51c7ab26656c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDYwOjExMDE3OTpGNjg0QzE6MTRGN0MxQjo2QTRENjFDOCIsInZpc2l0b3JfaWQiOiI1OTk5NjQwMzg4Nzk2NTA2NTY4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 675231bb9a726c9a056364d1cda1b72a3a63f8b320f802acca90046944f3c71e |
| hovercard-subject-tag | issue:270387859 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/datajoint/datajoint-python/388/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a8aea0f3daace095cf04cd68731d17c8ef76fbb22f7633424abe79b4c6435b42/datajoint/datajoint-python/issues/388 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a8aea0f3daace095cf04cd68731d17c8ef76fbb22f7633424abe79b4c6435b42/datajoint/datajoint-python/issues/388 |
| og:image:alt | This is perhaps a more elegant alternative solution to that in #382 / #383. MySQL does not provide a duplicate-specific ignore. But it does have ON DUPLICATE KEY UPDATE. It can be co-opted to play ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dimitri-yatsenko |
| hostname | github.com |
| expected-hostname | github.com |
| None | e6658d7c7808aeed776f841e0839b885fce343c9b96244be612c779298e7661e |
| turbo-cache-control | no-preview |
| go-import | github.com/datajoint/datajoint-python git https://github.com/datajoint/datajoint-python.git |
| octolytics-dimension-user_id | 2375501 |
| octolytics-dimension-user_login | datajoint |
| octolytics-dimension-repository_id | 5866704 |
| octolytics-dimension-repository_nwo | datajoint/datajoint-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 5866704 |
| octolytics-dimension-repository_network_root_nwo | datajoint/datajoint-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a438513d3a22ffcd713795ed948c3e5525007665 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width