Performance Challenge - Write Efficient Query - SQL in Sixty Seconds 140

Performance Challenge - Write Efficient Query - SQL in Sixty Seconds 140

Pinal Dave

3 года назад

46,475 Просмотров

Ссылки и html тэги не поддерживаются


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

Sunil Kumar
Sunil Kumar - 16.11.2023 09:05

All i can say is amazing.

Ответить
Faizan Sayyed
Faizan Sayyed - 17.08.2023 01:42

Great

Ответить
Cesar E. Hijar Santa María
Cesar E. Hijar Santa María - 31.05.2023 20:57

Great video. Do you have any URL or UDEMY course about SQL Tuning on SQL Server and SQL Server Instance-Server Tuning also? Please let me know.

Ответить
Ramprasad Reddy Rachapalli
Ramprasad Reddy Rachapalli - 24.05.2023 20:53

Hello Pinal how can we get the info of deadlock situation happened in the past

Ответить
Abhijeet Vaikar
Abhijeet Vaikar - 07.05.2023 23:28

Really helpful video for SQL query performance PoV. Thanks a ton SQL genious Pinal

Ответить
Govindram Vishvakarma
Govindram Vishvakarma - 21.03.2023 18:32

Very best Sir

Ответить
Ganesh A
Ganesh A - 24.01.2023 06:30

Thats why you are genius sir, and because of this many of us following you though have other bloggers

Ответить
Satyam Kumar
Satyam Kumar - 04.12.2022 14:59

Could you please create such video for Azure Data warehouse(Dedicated SQL Pool) . There optimization concept varies from normal sql database

Ответить
mbvnaveen5
mbvnaveen5 - 01.11.2022 18:08

@Pinal, I am a bit confused, can you please clarify again here?
Are you telling that the performance check depends on the client's needs? either he is interested on IO or Time, developer need to check with him on it?.

Ответить
Saiful Islam
Saiful Islam - 04.10.2022 13:42

Day by day I am learning a lot from you sir. Thank you so much for teaching all of us. God bless you.

Ответить
Rick Fu
Rick Fu - 18.09.2022 01:18

Thanks, appreciate it. My first thought was #2 as that's normally the fastest (and the one I would use).

Ответить
Eric Rouach
Eric Rouach - 28.08.2022 23:32

Thanks Pinal, very clearly explained.

Ответить
BHUDEV YT
BHUDEV YT - 02.07.2022 21:57

Hello sir I have one sql stored procedure and it is almost taking 3 minutes to get 75K records. Can we do improvement this SP? Please provide your inputs.

Ответить
Forever Sn
Forever Sn - 20.05.2022 23:22

Mr. Bond you are savior. Really useful info...could you please also know in terms of query efficiency what metric stand out the most IO read or Elapsed Time taken query to execute. Shouldn't execution plan give result based on IO read and Elapsed Time?

Ответить
Lokesh Pande
Lokesh Pande - 13.05.2022 06:17

Never seen anyone explaining sql with so much of excitement! Thank you Pinal Dave!!

Ответить
Nagaraj Kharvi
Nagaraj Kharvi - 24.04.2022 13:58

Nice video, Please make a video on how to write a query interms of Excecution plan, CPU Usage and Time. Is using subquery reduces the performance ?, Joins vs using subqueries. Is using IN clause makes query slower ? If yes any other alternatives ?

Ответить
ARUN TK
ARUN TK - 28.03.2022 10:04

Thank you

Ответить
Chris Shepperd
Chris Shepperd - 20.03.2022 17:00

Thank you for a very clear and informative video. Exactly what I needed.

Ответить
Vaibhav Maurya
Vaibhav Maurya - 04.03.2022 10:51

I am quite new to SQL. If I want to know more about what is page reads and how Statistics work then any guide ?

Ответить
ARPIT AWASTHI
ARPIT AWASTHI - 20.02.2022 19:24

Just got this video from suggestion, and my conclusion is u are superb sql man..

Ответить
Rick
Rick - 19.02.2022 22:44

I had guessed the third query but had failed to realize that we were then using the results of the aggregate to interrogate the table a second time.

One key point to remember is if the query might be executed multiple times. Sometimes, the optimizer can cache the results. This is particularly important when the query may be processed for multiple requests. This might occur on a website for example. I always like to understand the usage that will happen, so I can test what happens if the query is executed with different filter criteria for multiple requests (or maybe the same...). I have found that some compatible queries might be slower for the first execution, but subsequent queries cause the original (slower query) to be faster. (A key reason to use procedures/functions and make them deterministic...[Will not execute multiple times if passed the same parms.)

Ответить
Eclipce051
Eclipce051 - 14.02.2022 19:33

Great tip

Ответить
Paul T
Paul T - 09.02.2022 09:14

The web is full of answers to my SQL questions. Your website is my "go-to" default getting the right answer.

Ответить
Ajatha Indira
Ajatha Indira - 30.01.2022 19:31

You are awesome

Ответить
Saravanan Menaka
Saravanan Menaka - 03.01.2022 10:36

Window functions?

Ответить
Muhammad Azam
Muhammad Azam - 29.12.2021 11:15

Last several yours we are reading your articles.. you are doing asume work .... keep it up please

Ответить
World Around You !!!
World Around You !!! - 29.12.2021 09:04

Good morning
I would like to join if there any existing training batch . Have a wonderful day ahead. Thank you

Ответить
Mayank Kumar Singh
Mayank Kumar Singh - 27.12.2021 10:37

Do you have systematic SQL playlists?

Ответить
priya varma
priya varma - 16.12.2021 00:44

Awesome sir, ur like SQL encyclopaedia.. I just had a chance to watch ur presentation to craft … It’s really surprised me … Can you please do videos on performance tunings in procs & Indexes … Thanks a lot in advance 🙏🙏🙏

Ответить
Saurabh naik
Saurabh naik - 15.12.2021 23:09

One small doubt:
When we run for the first time, is it cached by Oracle in redo log buffer??
& Whenever we re-run it query translation time is skipped will affect timing of 2nd & 3rd run
Thanks
🙏

Ответить
Anantha Subramanian
Anantha Subramanian - 08.12.2021 08:34

Efficiency of Execution plan versus efficiency on time how is this different? Could you pls explain

Ответить
huzaifa jasnak
huzaifa jasnak - 24.11.2021 17:18

It will be helpful if you can explain with reason difference in performance for each query.

Ответить
Amit Pandey
Amit Pandey - 23.11.2021 17:50

Thank you sir, very well explained.
Sir can you please create a course for Performance tuning and optimization.

Ответить
Devarakonda Sankararao
Devarakonda Sankararao - 22.11.2021 09:17

Good explanation thank you pinal Dave sir

Ответить
Chathuranga Harischandra
Chathuranga Harischandra - 20.11.2021 08:41

Great explanation. Keep it up and wait for another more than 60 second video. 👍👍

Ответить
Ryan Hutchison
Ryan Hutchison - 18.11.2021 20:05

How do you determine that the bottleneck is IO as opposed to something else?

Ответить
Afzaal Awan
Afzaal Awan - 13.11.2021 00:35

Great..

Ответить
Pedro AGma
Pedro AGma - 09.11.2021 15:29

Hi! I am just writing a comment just to see if you will really read it and answer it.

Ответить
धीरज
धीरज - 07.11.2021 20:04

bossman, you're a genius. thank you for this video.

Ответить
A. User only
A. User only - 05.11.2021 12:13

Can I have theses three queries

Ответить
Sanjay Bhatia
Sanjay Bhatia - 05.11.2021 10:22

Continuation of previous comment : 1. What steps will you take If your procedure starts behaving slow 2. What things you would take care before writing a stored Procedure 3. What steps will you take If your SQL server starts running slow...
I am desparately looking for these 3 kind of videos from your Channel which I need to watch fromyour side only..

Ответить
Sanjay Bhatia
Sanjay Bhatia - 05.11.2021 10:19

Hi Pinal, I am big fan of your SQL in sizty seconds short videos series..I am desparately looking for a video from your side about 2 scenarios which is mostly asked in Interviews :

Ответить
Prabhu Cse
Prabhu Cse - 01.11.2021 20:29

Thanks pinal. It's very useful for me..

Ответить
MUHAMMAD ALI
MUHAMMAD ALI - 20.10.2021 17:50

Brilliant!! Those three factors are has to be in considerations

Ответить
Hans Riepma
Hans Riepma - 10.10.2021 01:38

Great video!!!

Ответить
Irfan Haider
Irfan Haider - 06.10.2021 13:26

your blogs are very help full for the DBAs great effort

Ответить
Jinesh Shah
Jinesh Shah - 17.09.2021 10:52

can you share same things with huge data, indexes, and caching

Ответить
Jing Zhou
Jing Zhou - 05.09.2021 21:24

I believe Window Function, because I believe it only requires one table scan.

Ответить