When database table structures store multiple values in a single column (such as tags in a string), it creates performance anti-patterns because the database must scan and parse the entire column to find specific values, leading to high CPU usage; normalizing the table structure by creating separate columns for each value provides a more efficient long-term solution.
Inmersión profunda
Prerrequisito
- No hay datos disponibles.
Próximos pasos
- No hay datos disponibles.
Inmersión profunda
Fixing TablesAñadido:
Hi Brent. After you've addressed a performance emergency, are there cases where you recommend table structure changes as a better long-term resolution? If so, what are some examples? Oh, um I'm going to give you the the classic one because normally I can't talk about some client stuff work, especially you can imagine if somebody hears and goes, "Oh my god, those were our tables." Um but there's one that I can talk about publicly and it always is such a good example is Stack Overflow.
uh at Stack Overflow that you could tag a question with up to five tags CQL server cursor you know you can apply up to five different tags in the beginning those tags were stored in a single column on the post table which is where questions are stored. So if you wanted to find out if a column was tagged with say C sharp, uh you had to scan that whole entire column because it was just one column that had up to five tags in it and the column could be anywhere in that string. Well, SQL Server is notoriously inefficient CPU wise at parsing strings like that. So, not only did it have to shred all the string, it also had to shred through all of the rows. Uh, because you couldn't just jump to the C row. After all, you could be tagged alphabetical or something else like that. Um, so that was a case where after several years, the CPU usage was so bad that they switched out to normalizing that. That's a great example.
Videos Relacionados
Re: 🗣️📍theprophedu📍2026 GST 103 CLASS (E-EXAM REVISION)
theprophedu
636 views•2026-06-04
WEB TECHNOLOGIES UNIT-2 | Degree 4th sem BCOM Computers web technologies unit-2 full explanation💯✅
LearnwithSahera
1K views•2026-05-29
More tests are always better? How to use AI to identify tests that bring little value
Alliance4Qualification
335 views•2026-05-29
Search Algorithms Explained in 60 Seconds! 🤖💨
samarthtuliofficial
218 views•2026-06-01
Making Minecraft Clone with C++ & Raylib
PecaCSLive
686 views•2026-06-04
People of Game of Thrones using JavaScript DOM
AltCampus
296 views•2026-05-30
Instagram accounts got PWNed
EricParker
13K views•2026-06-03
Introduction to Problem Solving Part - 1 | Lecture 1 | Intermediate DSA
ascensionix
107 views•2026-05-29
Tendencias
Why Batman Lets The Joker Live 🤨
zackdfilms
9222K views•2026-05-30
They're Complete Trash
penguinz0
558K views•2026-06-04
The Murder of Deputy Caleb Conley
MidwestSafety
810K views•2026-06-04
I Bought FAKE HopeScope Merch (and paid a subscriber to give it a makeover) | Hopeful Hauls
HangWithHopescope
158K views•2026-06-04











