Тёмный

Office Hours: Ask Me Anything About SQL Server at the Old Harbor 

Brent Ozar Unlimited
Подписаться 45 тыс.
Просмотров 6 тыс.
50% 1

You posted and upvoted questions at pollgab.com/room/brento, and I spend a chilly morning in Reykjavik answering 'em. Here's what we covered:
00:00 Introductions
01:02 Johnny: Good morning, Brent! VARCHAR or NVARCHAR; which one to use in our Western world? One could say that disk space is cheap so it doesn't matter. But with SQL Server's 8 kB pages, these pages will go full much faster when using NVARCHAR. I'm excited to hear your thoughts. Thanks!
02:24 volcano: Hello Brent, If i keep my compat level to 150, and enable legacy CE, how does SQL internally use latest SQL 2019 features like adaptive joins or memory feedback.
04:03 PostgresCurious: My company mainly uses MSSQL and Azure SQL but is exploring Azure Database for PostgreSQL as lower cost alternative. What are the main "gotchas/rough edges" that developers and DBAs need to be aware of when switching to Postgres? Are there any advantages besides the lower cost?
05:43 AlwaysLearningDBA: Thank you for taking time to answer our questions for free. Helping us save our face (by telling us to use “A friend of mine”), mimicking clippy and SQL Server voices is a great way to add fun to learning. I just can’t get clippy voice out of head now. LOL. Thank you, Brent.
06:04 For My Friend: Migrating to Azure SQL Databases from OnPrem and experiencing huge performance hit (1s onprem vs 8s in Azure). If we add OPTION (HASH GROUP) in Azure it runs in 1.2s? How bad is it to use this query hint any suggestions? Thanks for everything you do!
08:20 juggler314: I've read your post on instance stacking being not advisable. But if I'm limited to one OS install (licensing reasons). And performance is wildly over spec'd. Are there any downsides aside from the mentioned performance tuning issues? I can give each instance enough RAM/CPU/IO.
11:14 SunburnedDBA: A friend of mine is trying to capture queries that bring PLE to 0. He's tried Extended Events. Any suggestions?
12:59 FutureDBA: Hi Brent, Love your videos. Thank you so much for sharing with the community we really appreciate your efforts! Question: Select Into or Insert into select from ? I Ran the stats 1st uses less time but 2nd one has less cpu/logical reads and scan count. Which one is better?
14:47 Rob B: Hi Brent, my daughter recently took a trip to Iceland and told me that the locals are big into tomatoes - specifically tomato ice cream. I wondered if you've run into this / or if you've tried it.
17:13 Steve: Hey Brent. Been a long time. I'm having a time trying to get developers to test well. Any advice.
20:30 Mr. Griffith: Will we see you partner with a software vendor to design a SQL Server monitoring product? (Hint, hint.)
21:47 MattC: Hi Brent. How did you find making the leap from TSQL to PostGres. How similar are the 2?
23:05 BusyIsGood: When troubleshooting performance, you mention starting with top waits. Should I prioritize total wait times, or Avg ms Per Wait. Total suggests CPU, but Per Wait suggests Locking.
24:47 Wrap-up

Наука

Опубликовано:

 

15 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 17   
@jamesyoukhanis5074
@jamesyoukhanis5074 2 года назад
Its amazing I remember starting my career DBA back in 2004 and following Brent. You have been a life saver. I truly thank you for everything you have given back to the community. God bless. A true OG of SQL Server
@BrentOzarUnlimited
@BrentOzarUnlimited 2 года назад
Aww, thanks!
@diegombt
@diegombt 2 года назад
Thank you very much Brent
@thomasfranz8722
@thomasfranz8722 2 года назад
Regarding the first question (NVARCHAR vs VARCHAR): * it may make sense to allow Unicode in something as names - I remember a failed load, because a China restaurant used Chinese chars in its name (additional to the latin chars) * if you only target the western market, you do not need NVARCHAR for stuff as city, country, state, zip code * "hardcoded" / static referentials as delivery_status_name do not need to be unicode * use at least row (or often better page) compression to minimize the disk / memory space, if a column (as the name in 99.9 % of all cases) does not include any NVARCHARs * if you are on SQL 2019 you may use the UTF-8 collations instead of NVARCHAR (but it can be much more annoying to explicitly specify the collation than to simply use NVARCHAR plus compression)
@gauravt5744
@gauravt5744 2 года назад
Hey Brent , you're a great teacher ..thanks
@pradeepsingh-tw3qu
@pradeepsingh-tw3qu 2 года назад
Hi Brent, good to see you again 👍
@wldm5164
@wldm5164 2 года назад
Lol.. You said the same thing to me in Seattle a few years back, when you could hardly walk out of the convention center without getting a contact high. Pot smells different these days than when we were in high school.
@TheBrentOzar
@TheBrentOzar 2 года назад
Hahaha, it's true!
@christopherblack1661
@christopherblack1661 2 года назад
Thank you again!
@dtovee
@dtovee 2 года назад
It's good to see a 'Whale Watching' stall as I think it was only a couple of years ago Iceland was Whale slaughtering.
@KristoferOlafsson
@KristoferOlafsson 2 года назад
We went with more parallel executions, we have two coffee pots now.
@AartBluestoke
@AartBluestoke 2 года назад
re: azure sql; are you sure that the query plan is even different. azure sql might be "a little" slower than what you expect.
@AartBluestoke
@AartBluestoke 2 года назад
"trust me, you'll never be requested to store an emoji in that value" .... u-huh ...
@jebodiahsmith
@jebodiahsmith 2 года назад
oh man .. I love this guy .. Brent - I want to work for you ..
@ekujb2333
@ekujb2333 2 года назад
9:32 🤣🤣🤣🤣🤣
@gerritvanwyk6642
@gerritvanwyk6642 2 года назад
😁hint hint part
@BrentOzarUnlimited
@BrentOzarUnlimited 2 года назад
I love that joke, hahaha.
Далее
Office Hours in Telluride, Colorado
14:12
Просмотров 3,4 тыс.
Office Hours: Chilly Michigan Edition
14:50
Просмотров 4 тыс.
Office Hours in Sofia, Bulgaria
17:41
Просмотров 1,2 тыс.
Office Hours: 25 Answers in 10 Minutes
10:16
Просмотров 2,9 тыс.
Office Hours: I Don't Have All the Answers
13:17
Просмотров 1,4 тыс.
Office Hours: Just Three Questions
10:33
Просмотров 2,7 тыс.
Office Hours in Telluride Colorado
16:38
Просмотров 2,2 тыс.
Office Hours: Database Answers in Vancouver
11:44
Просмотров 1,2 тыс.
Office Hours: Hot Tub Edition
8:11
Просмотров 2,5 тыс.
Power BI Dashboard for the First Responder Kit
6:10
don't throw your faulty fan
0:24
Просмотров 2,5 млн
ЛУЧШИЙ ПОВЕРБАНК ОТ XIAOMI
0:39
Просмотров 15 тыс.
Эпоха Intel и AMD заканчивается?!
0:46