René's URL Explorer Experiment


Title: skip_duplicates=True silences all errors · Issue #347 · datajoint/datajoint-python · GitHub

Open Graph Title: skip_duplicates=True silences all errors · Issue #347 · datajoint/datajoint-python

X Title: skip_duplicates=True silences all errors · Issue #347 · datajoint/datajoint-python

Description: Now that I have sql_mode = "TRADITIONAL" enabled on our server (#344), mysql catches various errors, such as trying to enter values outside of an enum. However, if I insert a row with skip_duplicates=True, dj skips trying to insert dupli...

Open Graph Description: Now that I have sql_mode = "TRADITIONAL" enabled on our server (#344), mysql catches various errors, such as trying to enter values outside of an enum. However, if I insert a row with skip_duplicat...

X Description: Now that I have sql_mode = "TRADITIONAL" enabled on our server (#344), mysql catches various errors, such as trying to enter values outside of an enum. However, if I insert a row with ski...

Opengraph URL: https://github.com/datajoint/datajoint-python/issues/347

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"skip_duplicates=True silences all errors","articleBody":"Now that I have `sql_mode = \"TRADITIONAL\"` enabled on our server (#344), mysql catches various errors, such as trying to enter values outside of an enum. However, if I insert a row with `skip_duplicates=True`, dj skips trying to insert duplicate rows, but unfortunately, it also skips all other errors that mysql would otherwise raise. This is because `skip_duplicates=True` uses the mysql command:\r\n\r\n`INSERT IGNORE ...`\r\n\r\nat around line 146 in `base_relation.py`. Apparently, this converts all mysql errors to warnings:\r\n\r\nhttps://stackoverflow.com/questions/548541/insert-ignore-vs-insert-on-duplicate-key-update\r\n\r\nso the logic in `BaseRelation.insert()` needs to be changed. Looks like it was last changed in commit dcfa8a2cb9339caa26df3b199ef5514cba7c6319. Previously, at some point in 2015, it looks like there was explicit testing in Python for duplicates, here: https://github.com/datajoint/datajoint-python/pull/149/commits/a13831ffb35c8095e9199494b92c2513623d3336#diff-661ea2dd73d26214fc12cf0606680678R196\r\n\r\nI don't know if there's some other way to tell mysql to skip duplicates, while still raising all other errors. As suggested in the above stackoverflow post, maybe `INSERT...ON DUPLICATE KEY UPDATE` is a solution.","author":{"url":"https://github.com/mspacek","@type":"Person","name":"mspacek"},"datePublished":"2017-08-03T12:55:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/347/datajoint-python/issues/347"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:492b6769-2a67-4155-db2c-59b6e2a1eda5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD17E:776B8:19F89D:25FB84:6A4DFE77
html-safe-nonce7d6e3a6743e75450ad90f6e3a7108ee6d27ac30f24ea667543666a3517b8a2fb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTdFOjc3NkI4OjE5Rjg5RDoyNUZCODQ6NkE0REZFNzciLCJ2aXNpdG9yX2lkIjoiNjU1Mjc1NTI3MDgzNjk0NDUwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac0bfad2dea67826028e1a41530dd6e6a1dbb8b2136076f79ebba9cf41a7cf2640
hovercard-subject-tagissue:247697056
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/datajoint/datajoint-python/347/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cc126160b9331e685367fdeec1fc725dac5bffc9ec3e8f69c6a1ec2320d5475b/datajoint/datajoint-python/issues/347
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cc126160b9331e685367fdeec1fc725dac5bffc9ec3e8f69c6a1ec2320d5475b/datajoint/datajoint-python/issues/347
og:image:altNow that I have sql_mode = "TRADITIONAL" enabled on our server (#344), mysql catches various errors, such as trying to enter values outside of an enum. However, if I insert a row with skip_duplicat...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemspacek
hostnamegithub.com
expected-hostnamegithub.com
Nonedf0492960db29b4938cb72070351d6b1d0c6c0767b27ceb8394bbf4fcc0223c6
turbo-cache-controlno-preview
go-importgithub.com/datajoint/datajoint-python git https://github.com/datajoint/datajoint-python.git
octolytics-dimension-user_id2375501
octolytics-dimension-user_logindatajoint
octolytics-dimension-repository_id5866704
octolytics-dimension-repository_nwodatajoint/datajoint-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id5866704
octolytics-dimension-repository_network_root_nwodatajoint/datajoint-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release52bde38e24398476f8eb1e0760c81346c6a00812
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/datajoint/datajoint-python/issues/347#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdatajoint%2Fdatajoint-python%2Fissues%2F347
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdatajoint%2Fdatajoint-python%2Fissues%2F347
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=datajoint%2Fdatajoint-python
Reloadhttps://github.com/datajoint/datajoint-python/issues/347
Reloadhttps://github.com/datajoint/datajoint-python/issues/347
Reloadhttps://github.com/datajoint/datajoint-python/issues/347
Please reload this pagehttps://github.com/datajoint/datajoint-python/issues/347
datajoint https://github.com/datajoint
datajoint-pythonhttps://github.com/datajoint/datajoint-python
Notifications https://github.com/login?return_to=%2Fdatajoint%2Fdatajoint-python
Fork 96 https://github.com/login?return_to=%2Fdatajoint%2Fdatajoint-python
Star 194 https://github.com/login?return_to=%2Fdatajoint%2Fdatajoint-python
Code https://github.com/datajoint/datajoint-python
Issues 7 https://github.com/datajoint/datajoint-python/issues
Pull requests 4 https://github.com/datajoint/datajoint-python/pulls
Discussions https://github.com/datajoint/datajoint-python/discussions
Actions https://github.com/datajoint/datajoint-python/actions
Security and quality 0 https://github.com/datajoint/datajoint-python/security
Insights https://github.com/datajoint/datajoint-python/pulse
Code https://github.com/datajoint/datajoint-python
Issues https://github.com/datajoint/datajoint-python/issues
Pull requests https://github.com/datajoint/datajoint-python/pulls
Discussions https://github.com/datajoint/datajoint-python/discussions
Actions https://github.com/datajoint/datajoint-python/actions
Security and quality https://github.com/datajoint/datajoint-python/security
Insights https://github.com/datajoint/datajoint-python/pulse
skip_duplicates=True silences all errorshttps://github.com/datajoint/datajoint-python/issues/347#top
https://github.com/dimitri-yatsenko
duplicateIndicates similar issues, pull requests, or discussionshttps://github.com/datajoint/datajoint-python/issues?q=state%3Aopen%20label%3A%22duplicate%22
Release 0.9https://github.com/datajoint/datajoint-python/milestone/2
https://github.com/mspacek
mspacekhttps://github.com/mspacek
on Aug 3, 2017https://github.com/datajoint/datajoint-python/issues/347#issue-247697056
#344https://github.com/datajoint/datajoint-python/issues/344
https://stackoverflow.com/questions/548541/insert-ignore-vs-insert-on-duplicate-key-updatehttps://stackoverflow.com/questions/548541/insert-ignore-vs-insert-on-duplicate-key-update
dcfa8a2https://github.com/datajoint/datajoint-python/commit/dcfa8a2cb9339caa26df3b199ef5514cba7c6319
a13831f#diff-661ea2dd73d26214fc12cf0606680678R196https://github.com/datajoint/datajoint-python/commit/a13831ffb35c8095e9199494b92c2513623d3336#diff-661ea2dd73d26214fc12cf0606680678R196
dimitri-yatsenkohttps://github.com/dimitri-yatsenko
duplicateIndicates similar issues, pull requests, or discussionshttps://github.com/datajoint/datajoint-python/issues?q=state%3Aopen%20label%3A%22duplicate%22
Release 0.9https://github.com/datajoint/datajoint-python/milestone/2
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.