Skip to content

Batch Upserts with NULL values on Unique Index - MySQL #3867

Answered by MarkBaker
bmckay959 asked this question in Q&A
Discussion options

You must be logged in to vote

Re: option 3; if you're running MySQL8, look at "calculated columns", which needn't take up disk space (unless you want them to for indexing purposes), and don't duplicate data.
You could make a duplicated column based on a hash to reduce data volume if you did want to maintain it on disk for indexing

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bmckay959
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants