Find Database File Latency - SQL in Sixty Seconds 198

Find Database File Latency - SQL in Sixty Seconds 198

Pinal Dave

2 года назад

8,670 Просмотров

Find Database File Latency with T-SQL Script

Download Script: https://blog.sqlauthority.com/2022/06/07/sql-server-script-to-list-database-file-latency/

0:00 Intro
0:15 Real-world Story
0:37 Demo: Find Database File Latency
1:32 How to Fix?
1:55 Final Note

Join this channel to get access to perks:
https://www.youtube.com/channel/UCCH2Al33ow5o5CXno2jeZRQ/join

Subscribe for Free Performance Tuning Scripts: https://go.sqlauthority.com/

#SQLServer #PerformanceTuning #SQLAuthority

Тэги:

#SQL #SQL_Server #SQLAuthority #pinaldave #Sixty_Seconds
Ссылки и html тэги не поддерживаются


Комментарии:

Zanoni Labuschagne
Zanoni Labuschagne - 19.07.2022 12:34

Thanks for this. This has to be one of the most contentious issues - telling the infrastructure team that a disk is slow... "no, no, no, we just put in a new <<some brand name>> super duper drive on our VM host. It must be your code that it is slow" :P

Thanks for sending out videos like these, they are both entertaining and educational !!

Ответить
 SGDVG @ Hansi Tantra
SGDVG @ Hansi Tantra - 28.06.2022 19:14

Sir one more help I am unable to shrink a DB log file , fyi sir that db has partitioning file groups one MDF three ndf and a log file. Log file size is 1.5 tb.
Now I am taking transaction log backup then backup size is 50 to 100 mb which is equal to available free space size. And after log backup in shrink file option still the current size is 1.5 tb and available free space size is 50 to 100 mb. So unable to shrink log. But daily 5 to 6 gb log is increasing. My log drive size 50 gb is remaining only .
Now what should I do sir ?
Kindly suggest.
Thanking you sir

Ответить
prakash m n
prakash m n - 26.06.2022 14:44

Hi Sir, it is related to both data files and deletion. I am deleting data from huge db on daily basis, but I can see space is not cleared from data files after deletion. I am rebuilding indexes to reclaim deleted data space in data files. Please share if there are any other ways to claim deleted data's space. Thank you.

Ответить
Julian Demml
Julian Demml - 21.06.2022 15:06

thank you very much pinal! one of the best world wide :-)

Ответить
 SGDVG @ Hansi Tantra
SGDVG @ Hansi Tantra - 21.06.2022 15:03

Sir , my query is not belonging of this topic , but I have.
If I shrink MDF file as available space is almost 95% , will log size be increased?
I am not getting proper solution in Google, please help.

Ответить
Priyanka Sharma
Priyanka Sharma - 21.06.2022 09:58

Thank you for the video. Around what number is generally considered as a high number for io_stall_read and io_stall_write?

Ответить
Devendra singh
Devendra singh - 18.06.2022 17:42

hello sir please make a video on soql performance & index

Ответить
Linus Kyle
Linus Kyle - 15.06.2022 15:42

what values do you consider high?

Ответить
Rambabu. Kadiyala
Rambabu. Kadiyala - 15.06.2022 03:48

Good video and useful.. please provide the link also for those scripts.. it will help us..

Ответить
G. Versluis
G. Versluis - 14.06.2022 19:50

Thanks very much for this gem! Is io_stall something you'd want to monitor? Not necessarily for alerting when over a threshold; I'm mostly thinking of data collection as a performance counter. This can be done for troubleshooting purposes, to see if latency was the cause of an issue, or to compare a before and after an application update.

Ответить
Archibald Tuttle
Archibald Tuttle - 14.06.2022 16:58

I should send my database admins to you for a course :-)

Ответить
FZ
FZ - 14.06.2022 15:08

Thank you for this video

Ответить
Eclipce051
Eclipce051 - 14.06.2022 14:31

Yeah I have combined this with the indexes status reads to determine how to approach a slow performance on a high traffic system. Great video

Ответить